Search found 5 matches

by ljacs
Sat Oct 13, 2012 11:06 pm
Forum: Volume 2 (200-299)
Topic: 247 - Calling Circles
Replies: 21
Views: 11258

Tarjan's algorithm for finding SCCs (Prob. 247)

Removed
by ljacs
Sun Oct 07, 2012 5:55 am
Forum: Volume 109 (10900-10999)
Topic: 10901 - Ferry Loading III
Replies: 54
Views: 32605

Why Wrong Answer?

Please help.

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <bitset>
#include <cstring>
#include <stack>
#include <queue>
typedef unsigned long long ll;
using namespace std;

queue<int> l;
queue<int> r;

int main()
{
int c; scanf("%d", &c);
while (c--){
int ...
by ljacs
Sun Oct 07, 2012 12:24 am
Forum: Volume 111 (11100-11199)
Topic: 11111 - Generalized Matrioshkas
Replies: 19
Views: 14678

Re: 11111 - Generalized Matrioshkas

Hello there! I don't know why I get WA for this problem. I've covered sample input/output and it all seems right to me >.<
Could anyone please give me some critical input or figure out my code's problem?
Thank you :)

Edit:
Figured out the problem. For those who are getting WA, here are the previous ...
by ljacs
Wed Sep 05, 2012 11:03 pm
Forum: Volume 5 (500-599)
Topic: 556 - Amazing
Replies: 17
Views: 8889

Re: 556 - Why WA? (Amazing)

Oh, you're right. I don't know why but the IDE I use would give me the correct output O.o
Anyway, thanks, I got accepted. And sorry for the double post, I did it because I realized after a while I did not post at the right place. :roll: It's deleted already anyways.
Thank you :D
by ljacs
Wed Sep 05, 2012 5:18 pm
Forum: Volume 5 (500-599)
Topic: 556 - Amazing
Replies: 17
Views: 8889

556 - Why WA? (Amazing)


Accepted.


Hello there! This is my code for problem n. 556 (Amazing).
I know I might not have done it the smartest way around but I've tested several cases and even critical inputs and the outputs are correct.
Still, I'm getting wrong answer for this code. Could anyone please help me with that ...

Go to advanced search