Search found 3 matches
- Wed Jul 30, 2008 7:52 pm
- Forum: Volume 4 (400-499)
- Topic: 402 - M*A*S*H
- Replies: 56
- Views: 19974
Re: 402 help~
why i got TLE ? i try all the test cases i can find and pass it,but still TLE... thx for your help... #include<stdio.h> #include<stdlib.h> typedef struct node{ int no; struct node *next; }NODE; int main(){ int n,x,y,live,tp,times=1; int kill[20]; NODE *root; NODE *newptr; NODE *tmp; while(scanf(&quo...
- Wed Dec 19, 2007 7:49 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 47479
#include<stdio.h> #include<ctype.h> char input[1000000]; char temp[1000000]; int main() { while(gets(input)!=NULL) { int i=0; while(input[i]!='\0') { int x=0; while(isalpha(input[i])) { temp[x]=input[i]; x++; i++; } int y; if(temp[0]=='a'||temp[0]=='e'||temp[0]=='i'||temp[0]=='o'||temp[0]=='u'||tem...
- Wed Dec 05, 2007 7:19 am
- Forum: Volume 103 (10300-10399)
- Topic: 10310 - Dog and Gopher
- Replies: 47
- Views: 22601