Search found 2 matches

by FT
Sat Jul 06, 2002 3:38 pm
Forum: Volume 102 (10200-10299)
Topic: 10293 - Word Length and Frequency
Replies: 18
Views: 8366


My program got Time Limit Exceeded. Any one can help me. Correct my mistake please. Thank you. [cpp] #include<iostream.h> #include<math.h> #include<stdio.h> #define in cin int len[31]; void main() { char ch; int ltemp; int i,flag; while(in.get(ch)){ for(i=0;i<31;i++) len[i]=0; ltemp=0; flag=0; while...
by FT
Wed Jul 03, 2002 8:42 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 44340

713 - Adding Reversed Numbers

Anyone can give me some test datas. My program got Wrong answer, and i don't know what is wrong with it. #include<iostream.h> #include<string.h> void main() { int N; int i,len1,len2,advance,temp,flag; char num1[1000]; char num2[1000]; cin>>N; while(N--){ cin>>num1; cin>>num2; len1=strlen(num1); len2...

Go to advanced search