Search found 3 matches
- Wed Sep 04, 2002 4:51 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 209217
- Wed Sep 04, 2002 3:39 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 209217
sorry!
I'm sorry!
I should told you that the result I got is "time limit exceeded".
I should told you that the result I got is "time limit exceeded".

- Wed Sep 04, 2002 3:14 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 209217
problem100
I don't konw what the problem is in my code. Can any one help me? :cry: #include<stdio.h> int lengh(long int); int main(void) { long int i,j,a; int k,c; while(1) { c=0; scanf("%ld %ld",&i,&j); if(i==0||j==0) break; if(i>j) { for(a=j;a<=i;a++) { k=lengh(a); if(k>c) c=k; } printf(&qu...