## Search found 11 matches

6 years ago
Forum: Problem set
Topic: 2537 - Assassins of the Three Kingdoms
Replies: 4
Views: 1282
Gender:

### Re: 2537 - Assassins of the Three Kingdoms

The goal is to count the number of permutations in which Pavel chooses first than other players who wants the same card that him, right?
7 years ago
Forum: Problem set
Topic: 1002 - New House
Replies: 2
Views: 1205
Gender:

### Re: 1002 - New House

where can i found documentation related with the topic of this problem?
7 years ago
Forum: Problem set
Topic: 1010 - ACM contest and Blackout
Replies: 2
Views: 1043
Gender:

### Re: 1010 - ACM contest and Blackout

What i understand in this problem is that you must find the MST and the 2nd MST, in a weighted non-directed graph. I'm making a classic Kruskal, then i save in a vector the solution's edges. Finally a loop in that vector deactivating one edge at the time, and choosing the minor MST of that loop. But...
7 years ago
Forum: C/C++/C++11
Topic: Te cycles
Replies: 7
Views: 6498
Gender:

### Re: Te cycles

Would you give us a link or the document? i haven't heard about it, but it should be really interesting.
7 years ago
Forum: C/C++/C++11
Replies: 1
Views: 2561
Gender:

How can i calculate the log in base 2 of a number in C++?
7 years ago
Forum: C/C++/C++11
Replies: 1
Views: 2638
Gender:

how can i read until EOF using cin, or any other way different than while( scanf("%s", cadena)!= EOF ). The objective is to use the string of the class string and read with iostream.
7 years ago
Forum: C/C++/C++11
Topic: Priority Queues
Replies: 1
Views: 2767
Gender:

### Priority Queues

somebody knows how to use the priority queue of the stl, not with the data type int but with some other structure or class. I'm trying but i don't know how to indicate the priority order. I've already try with overloading operators but i'm having some troubles. Could anyone help me?
7 years ago
Forum: Algorithms
Topic: Suffix Array
Replies: 5
Views: 5259
Gender:

### Re: Suffix Array

would you write that efficient solution for us?
7 years ago
Forum: Algorithms
Topic: DFS
Replies: 2
Views: 3041
Gender:

### Re: DFS

someone could write an efficient code on c++? i just want to know 2 or 3 differents ways to do it.
7 years ago
Forum: Problem set
Topic: 2216 - Wordstorm
Replies: 3
Views: 728
Gender:

### Re: 2216 - Wordstorm

i think it is because you can't take two "B" if in the set there's only one, but i'm not 100% sure..