Search found 19 matches

by thomas1016
Sat Jun 10, 2006 5:43 am
Forum: Volume 4 (400-499)
Topic: 498 - Polly the Polynomial
Replies: 73
Views: 15327

498 TLE

I have found the reason why is TLE. It is beacuse "getline" that can lead to use 1 more "enter" to get the output on VC compiler,but dev C++ is ok. How can I fix it???? #include <iostream> #include <string> #include <sstream> using namespace std; int t2w(string); int main(void){ ...
by thomas1016
Sat Jun 10, 2006 5:24 am
Forum: Volume 107 (10700-10799)
Topic: 10790 - How Many Points of Intersection?
Replies: 28
Views: 16977

Thank u

Thanks a lot .It's already AC. :lol: :lol: :lol: :lol: :lol:
by thomas1016
Sat Jun 10, 2006 4:26 am
Forum: Volume 107 (10700-10799)
Topic: 10790 - How Many Points of Intersection?
Replies: 28
Views: 16977

10790 WA

Can u guys tell me why it didn't be C(m,2) * C(n,2) be the answer??? PLS... #include <iostream> using namespace std; long long int gcd(long long int,long long int); unsigned long long int c(int,int); int main(void){ int a,b,d; d=1; while(cin>>a>>b){ if(a==0 && b==0){ break; } cout<<"Cas...
by thomas1016
Fri Jun 09, 2006 9:02 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 48569

623 RE

I try several times but still RE. Can someone help me >.< #include <iostream> #include <string> using namespace std; int main(void){ int b,o,z; int i,j,t,k,r,w; string a; string c; while(cin>>z){ a="1"; for(o=1;o<=z;o++){ b=o; a="00000"+a; j=0; c=""; for(i=0;i<a.length(...

Go to advanced search