Search found 13 matches

by mmfrb
Mon Nov 05, 2012 10:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10147 - Highways
Replies: 67
Views: 20541

Re: 10147 - Highways

why WA? I've tried everything. Thanks for help #include <cstdio> #include <vector> #include <cmath> #include <algorithm> using namespace std; typedef vector <int> vi; typedef pair <int, int> ii; typedef pair <double, ii> dii; vector <dii> edgeList; vector < pair<double, double> > coordinates; vi id,...
by mmfrb
Tue Oct 16, 2012 12:04 pm
Forum: Volume 114 (11400-11499)
Topic: 11492 - Babel
Replies: 18
Views: 10508

Re: 11492 - Babel

Is it because of "cin" ? is there a way to submit offline to see how much time does it take? Plzz help
by mmfrb
Tue Oct 16, 2012 1:19 am
Forum: Volume 114 (11400-11499)
Topic: 11492 - Babel
Replies: 18
Views: 10508

Re: 11492 - Babel

Why TLE? I'm just running a normal dijsktra algorithm, and my output is correct for all the inputs in this thread. I'd be very grateful if someone could help me. Thanks #include <cstdio> #include <vector> #include <string> #include <map> #include <queue> #include <iostream> #define MAX 2147483645 us...
by mmfrb
Sun Oct 07, 2012 9:33 pm
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9984

Re: 11517 - Exact Change

Hmm... so is there a way to make it better or my recursive implementation is impossible? ;x;x
by mmfrb
Sun Oct 07, 2012 4:10 pm
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9984

Re: 11517 - Exact Change

Hello, guys. My code works well in my compiler, but when I submit it by IDEONE it gives me Runtime Error : Sigkill I don't know where it is coming from. If someone could help me I would appreciate. Thanks #include <cstdio> #include <utility> #include <cstring> #define INF 2000000 using namespace std...
by mmfrb
Tue Oct 02, 2012 4:05 pm
Forum: Volume 4 (400-499)
Topic: 410 - Station Balance
Replies: 41
Views: 15283

Re: 410 WA

#include <cstdio> #include <algorithm> #include <cmath> using namespace std; int c, s, specimens[10], a, chamberNumber; int last, init; double media, imbalance, c1, a1, actual; int main() { int cases = 0; while(scanf("%d %d", &c, &s) == 2) { if(cases) printf("\n"); a = 0; imbalance = 0; chamberNumb...
by mmfrb
Tue Sep 25, 2012 4:28 pm
Forum: Volume 117 (11700-11799)
Topic: 11742 - Social Constraints
Replies: 6
Views: 2292

11742 - Social Constraints

I think it is a silly mistake, since nobody openned this thread before. Why WA? Thanks #include <cstdio> #include <algorithm> #include <map> #include <iostream> #include <sstream> #include <string> using namespace std; int n, m, x, y, condition, howMany; map <string, int> conditions; int permutArray...
by mmfrb
Sat Sep 22, 2012 4:56 pm
Forum: Volume 108 (10800-10899)
Topic: 10801 - Lift Hopping
Replies: 56
Views: 26799

Re: 10801 - Lift Hopping

I know it seems to be a very silly question, but the answer would help me a lot.

Code: Select all

2 2
10 5
0 1 2
1 2
Is it 75? It wouldn't make any sense..
by mmfrb
Thu Sep 20, 2012 11:08 pm
Forum: Volume 106 (10600-10699)
Topic: 10600 - ACM Contest and Blackout
Replies: 34
Views: 13286

Re: 10600 - ACM Contest and Blackout

Yes! Your sample input made me think that the number of disjoint sets before and after has to be the same! Now i got AC... thanks so so so much!
by mmfrb
Wed Sep 19, 2012 6:48 pm
Forum: Volume 106 (10600-10699)
Topic: 10600 - ACM Contest and Blackout
Replies: 34
Views: 13286

Re: 10600 - ACM Contest and Blackout

No one? Please? I dunno what I can change anymore.. :(
by mmfrb
Wed Sep 19, 2012 2:12 am
Forum: Volume 106 (10600-10699)
Topic: 10600 - ACM Contest and Blackout
Replies: 34
Views: 13286

10600 - ACM Contest and Blackout

Why WA?

Code: Select all

AC
by mmfrb
Thu Aug 30, 2012 10:51 pm
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 20820

Re: 11221 - Magic square palindromes

Wow, I did not expect that kind of mistake... but i didn't have any idea a line could reach this size, now I got AC. Thank you very much! :D
by mmfrb
Thu Aug 30, 2012 3:24 pm
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 20820

Re: 11221 - Magic square palindromes

Why do I keep getting RE? Some1 help please!

Code: Select all

REMOVED AFTER AC

Go to advanced search