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: 11215

10293

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 ...
by FT
Wed Jul 03, 2002 8:42 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60818

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 ...

Go to advanced search