Search found 37 matches

by ranban282
Mon May 22, 2006 3:28 am
Forum: Volume 103 (10300-10399)
Topic: 10394 - Twin Primes
Replies: 101
Views: 32970

lol...... i modify the code slightly and upload it as c instead of c++ and it gets accepted
by ranban282
Mon May 22, 2006 3:05 am
Forum: Volume 103 (10300-10399)
Topic: 10394 - Twin Primes
Replies: 101
Views: 32970

WHY TLE???????????????

Code: Select all

code removed
by ranban282
Thu May 18, 2006 1:40 pm
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 14263

Hi

Thx all, my code got accepted....
You will not believe it.....
The error was caused by using fabs.
The moment i removed it it started working.
Does anyone know why that happens?
by ranban282
Thu May 18, 2006 3:24 am
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 14263

I modify the program, still i get TLE...

#include<iostream> #include<cstdio> #include<vector> #include<string> #include<algorithm> #include<cmath> #include<list> #include<queue> #include<cctype> using namespace std; int main() { string s; while(getline(cin,s,'\n')) { int hr=0,m=0; string::iterator i; for(i=s.begin();i!=s.end()&&*i!=':';i++...
by ranban282
Thu May 18, 2006 3:07 am
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 14263

HI,

Could you be a bit more specific? As in what kind of inputs are expected?
by ranban282
Wed May 17, 2006 5:04 pm
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 14263

579 WHY TLE???

Here's the code #include<iostream> #include<cstdio> #include<vector> #include<string> #include<algorithm> #include<cmath> #include<list> #include<queue> #include<cctype> using namespace std; int main() { string s; int hr,m; char temp; while(cin>>s) { if(s=="0:00") break; if(s.length()==4) { hr=s[0]-...
by ranban282
Fri May 05, 2006 10:30 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 22444

147 why WA????

code removed...

Go to advanced search