Search found 11 matches

by Spartan
6 years ago
Forum: Problem set
Topic: 2537 - Assassins of the Three Kingdoms
Replies: 4
Views: 1047
Gender: Male
Cuba

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?
by Spartan
6 years ago
Forum: Problem set
Topic: 1002 - New House
Replies: 2
Views: 987
Gender: Male
Cuba

Re: 1002 - New House

where can i found documentation related with the topic of this problem?
by Spartan
6 years ago
Forum: Problem set
Topic: 1010 - ACM contest and Blackout
Replies: 2
Views: 849
Gender: Male
Cuba

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...
by Spartan
6 years ago
Forum: C/C++/C++11
Topic: Te cycles
Replies: 7
Views: 5351
Gender: Male
Cuba

Re: Te cycles

Would you give us a link or the document? i haven't heard about it, but it should be really interesting.
by Spartan
6 years ago
Forum: C/C++/C++11
Topic: Log in base 2 in c++
Replies: 1
Views: 1682
Gender: Male
Cuba

Log in base 2 in c++

How can i calculate the log in base 2 of a number in C++?
by Spartan
6 years ago
Forum: C/C++/C++11
Topic: reading until EOF
Replies: 1
Views: 1760
Gender: Male
Cuba

reading until EOF

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.
by Spartan
6 years ago
Forum: C/C++/C++11
Topic: Priority Queues
Replies: 1
Views: 1864
Gender: Male
Cuba

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?
by Spartan
6 years ago
Forum: Algorithms
Topic: Suffix Array
Replies: 5
Views: 4104
Gender: Male
Cuba

Re: Suffix Array

would you write that efficient solution for us?
by Spartan
6 years ago
Forum: Algorithms
Topic: DFS
Replies: 2
Views: 2038
Gender: Male
Cuba

Re: DFS

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

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..

Go to advanced search