Search found 8 matches
- Sat Nov 16, 2013 11:30 am
- Forum: Volume 8 (800-899)
- Topic: 853 - DVD Subtitles
- Replies: 6
- Views: 4710
Re: 853 - DVD Subtitles
fixed the runtime error, i was copying full std::strings which compiler didnt like i guess changed them to char[] and no runtime error but im getting wrong answer now !!, how come ? #include <iostream> #include <stdio.h> #include <string> #include <cstdlib> #include <map> #include <vector> #include ...
- Sat Nov 16, 2013 1:00 am
- Forum: Volume 8 (800-899)
- Topic: 853 - DVD Subtitles
- Replies: 6
- Views: 4710
853 - DVD Subtitles
i keep getting runtime error when i upload this, everything working fine on my computer and getting correct results for every testcase i can think of even tried compiling it at http://www.compileonline.com/compile_cpp_online.php and its working just fine any clues ? #include <iostream> #include <std...
- Sat Nov 09, 2013 1:17 pm
- Forum: Volume 3 (300-399)
- Topic: 352 - The Seasonal War
- Replies: 54
- Views: 21658
Re: 352 The Seasonal War wrong answer ??
wow this is soo stupid
ive been at this problem for 2 days
it clearly says in the problem the input should be from file "Bumble.in"
ive been at this problem for 2 days
it clearly says in the problem the input should be from file "Bumble.in"
- Sat Nov 09, 2013 1:06 pm
- Forum: Volume 3 (300-399)
- Topic: 352 - The Seasonal War
- Replies: 54
- Views: 21658
352 The Seasonal War wrong answer ??
ive tried every single test case on the forum and that i can think of and all are correct may i please get a hint or some help as to what im missing i keep getting WA #include <stdio.h> #include <iostream> #include <queue> #include <map> #include <string> #include <list> #include <vector> #include <...
- Fri Nov 08, 2013 2:25 am
- Forum: Volume 5 (500-599)
- Topic: 539 - The Settlers of Catan
- Replies: 22
- Views: 10445
Re: 539 why wa ..plz help
HELP what am i not taking into account everything seems correct to me #include <stdio.h> #include <iostream> #include <queue> #include <map> #include <string> #include <list> #include <vector> #include <math.h> using namespace std; int nodes; int edges; int** matrix; int vmax = 0; void traverse(int...
- Thu Nov 07, 2013 11:46 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 304269
Re: PROBLEM 100
wow how stupid,
what it looked like in the program output that the last line doesnt have a newline,
turns out that it has a newline and i wasnt printing it
what it looked like in the program output that the last line doesnt have a newline,
turns out that it has a newline and i wasnt printing it
- Thu Nov 07, 2013 3:54 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 304269
Re: PROBLEM 100
still wrong answer
even if i do
any ideas ?
even if i do
Code: Select all
cout << temp_i << ' ' << temp_j << ' ' << max;
- Wed Nov 06, 2013 12:14 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 304269
PROBLEM 100
i cant understand why i get wrong answer please help #include <stdio.h> #include <map> #define MIN(x,y) (x<y)?x:y #define MAX(x,y) (x>y)?x:y std::map<unsigned long long int,unsigned long long int> number; unsigned long long int compute(unsigned long long int n) { if(!number[n]) { if(n&1) number[...