Search found 4 matches

by meee...
Mon Oct 01, 2012 4:29 pm
Forum: Volume 108 (10800-10899)
Topic: 10895 - Matrix Transpose
Replies: 17
Views: 5145

Re: 10895 - Wrong Answer! :(

Hi , prove this trivial case:

Code: Select all

0 1
1 0
0
the correct outputs:

Code: Select all

0 0
0 0
by meee...
Wed Oct 26, 2011 3:32 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 24325

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

Why am i getting TLE? #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> using namespace std; #define MSG(a) cout<<#a<<"="<<a<<endl; #define MAX 1000001 int prime[MAX]; void sieve(int n){ for(int i = 0;i<=n;i++){ prime[i]=1; } prime[0]=prime[1]=0; for(int i = 2...
by meee...
Thu Oct 01, 2009 8:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10010 - Where's Waldorf?
Replies: 42
Views: 18278

Re: 10010 - Where's Waldorf?

HI I got runtime Error , helpme plz , I'm novice it's my code: #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <ctype.h> #include <string> #include <cstring> #include <algorithm> #include <queue> #include <stack> #include <vector> #include <list> #include <map> #in...
by meee...
Tue Dec 09, 2008 4:11 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50394

102 - Why WA ?? ...

help me please... Thank you very much!! #include <cstdio> #include <iostream> using namespace std; inline long min(long a, long b, long c = -1){ if(c == -1) return (a > b) ? b : a; else return (min(min(a,b),c)); } int main(){ long i; long num[10]; char order[4]; long x,y,z; long op[4]; while(cin>>nu...

Go to advanced search