Search found 5 matches

by ypozo
4 years ago
Forum: Other languages
Topic: Python
Replies: 36
Views: 11187
Gender: None specified

Python round

Ok, thanks es justo lo que necesitaba, si tengo entendido del excelente dinamismo de python, pero si se pueden crear arrays "parecidos" a los de otros lenguajes, sobre todo en el hecho de que todos sean del mismo tipo, llegate a import array o import arrays (no recuerdo bien) Tengo un problema AC en...
by ypozo
4 years ago
Forum: Off topic
Topic: Alphabetical order or Lexicographic order
Replies: 1
Views: 1311
Gender: None specified

Alphabetical order or Lexicographic order

Hi, any one would give me an explication about difference betwen that orders. I allways know, but already I'm counfuse respect Alphabetical order and Lexicographic order,
thanxxx
by ypozo
4 years ago
Forum: Other languages
Topic: Python
Replies: 36
Views: 11187
Gender: None specified

Python Round and Arrays

Hi, congratulations!!, great posts !!! Now, I´m looking for a nice "how to" round in python ?? and I really need understand how work this: matrix = [[int(i) for i in raw_input().split()] for i in range(cant)] #in just a line of code Course that this fill a matrix with ints, BUT wich numbers?: withs ...
by ypozo
6 years ago
Forum: Algorithms
Topic: hash_map on STL
Replies: 2
Views: 2073
Gender: None specified

hash_map on STL

We can see here http://www.sgi.com/tech/stl/hash_map.html that is a easy way to make a hash_map on this form struct eqstr { bool operator()( const char* s1, const char* s2) const ){ return strcmp(s1, s2) == 0; } }; // and on any function : hash_map<const char*, int, hash<const char*>, eqstr> anyName...
by ypozo
6 years ago
Forum: Problem set
Topic: 1192 - Work Scheduling
Replies: 4
Views: 1373
Gender: None specified

about 1192

Also add that the source of this problem is http://acm.timus.ru/problem.aspx?space=1&num=1099 on Timus Online Judge,
salu-DDoS for all

Go to advanced search