Can anyone tell me why I get a Time limit exceeded? :cry:
Thanks.
#include<iostream>
using namespace std;
int main( int argc, char * argv[] )
{ int use[10]={0,1,22,333,4444,55555,666666,7777777,88888888,999999999};
long i , j , k ,l;
long n , a , f ;
cin >> n ;
for(i=0;i<n;i++) {
cin >> a ...
Search found 6 matches
- Wed Nov 28, 2007 2:26 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64507
- Wed Oct 10, 2007 4:43 am
- Forum: Volume 100 (10000-10099)
- Topic: 10026 - Shoemaker's Problem
- Replies: 82
- Views: 46973
- Tue Oct 09, 2007 2:06 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10026 - Shoemaker's Problem
- Replies: 82
- Views: 46973
I am sorry to trouble you a lot.
But I still get W.A.
I am now wondering if my answer is really wrong.
But I still get W.A.

I am now wondering if my answer is really wrong.
Code: Select all
. . .
- Tue Oct 09, 2007 6:59 am
- Forum: Volume 100 (10000-10099)
- Topic: 10026 - Shoemaker's Problem
- Replies: 82
- Views: 46973
I am sorry, I don't completely understand your second point.(I know that's what the problem says.)
But I changed my code, I hope I guess right.
But I changed my code, I hope I guess right.
Code: Select all
. . .
- Mon Oct 08, 2007 4:50 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10026 - Shoemaker's Problem
- Replies: 82
- Views: 46973
Thank you so much!
If my thinking is approximately right ,you can just give me some examples that my program would return wrong answers.
I think I could try to find the mistakes by myself.
(Sorry,I am not good at speaking or writing English...)
If my thinking is approximately right ,you can just give me some examples that my program would return wrong answers.
I think I could try to find the mistakes by myself.
Code: Select all
...
- Sun Oct 07, 2007 4:42 am
- Forum: Volume 100 (10000-10099)
- Topic: 10026 - Shoemaker's Problem
- Replies: 82
- Views: 46973