Search found 21 matches

by Deno
Tue Oct 25, 2005 2:52 am
Forum: Volume 1 (100-199)
Topic: 167 - The Sultan's Successors
Replies: 21
Views: 3710

I submit it again today without any changes....I got accepted!! :-?
Thank you.
by Deno
Tue Oct 25, 2005 2:40 am
Forum: Volume 1 (100-199)
Topic: 167 - The Sultan's Successors
Replies: 21
Views: 3710

but...I have cout.width(5); in my code already...
by Deno
Sun Oct 23, 2005 6:35 am
Forum: Volume 1 (100-199)
Topic: 167 - The Sultan's Successors
Replies: 21
Views: 3710

Did my inquiry sound rude in anyway? :(
How come nobody replies...>.<
by Deno
Thu Oct 20, 2005 5:36 pm
Forum: Volume 1 (100-199)
Topic: 167 - The Sultan's Successors
Replies: 21
Views: 3710

Re: 167 The Sultan's Successors WA

Here is a sample input: 9 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 78 53 31 36 98 52 79 36 2 91 87 53 68 18 96 41 44 43 71 48 94 46 17 56 4 35 27 39 61 80 43 9 49 56 95 3 33 16 45 54 82 16 96 12 43 50 83 59 48 79 ...
by Deno
Thu Oct 20, 2005 9:34 am
Forum: Volume 1 (100-199)
Topic: 167 - The Sultan's Successors
Replies: 21
Views: 3710

167 The Sultan's Successors WA

Hello everyone: I am getting a WA. Here is my algorithm: The function BackTrack generates all (92) possible ways to put 8 queens on the board. Then for each input, the program will loop through those (92) ways and decide which of them has the highest value. so...what's wrong with my code/algorithm? ...
by Deno
Wed Oct 15, 2003 12:55 am
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23428

10433 Automorphic Numbers - Wrong Answer

I have no ideal why did I get WA? #include <iostream> #include <string> #include <algorithm> int main(int, char**) { using namespace std; const string end5("077347828...omit...8212890625"), end6("9226521714...omit...1787109376"); string str; while(cin>>str) if ( str == "1" || equal(str.rbegin(), str...

Go to advanced search