Search found 5 matches

by laicc86
Wed Dec 05, 2007 12:30 pm
Forum: Volume 109 (10900-10999)
Topic: 10924 - Prime Words
Replies: 44
Views: 22517

helloneo wrote:gets returns NULL instead of EOF at the end of input..


PS. remove your code after AC..
thx for helping~ but i still get WA after i changed the EOF to NULL :(
by laicc86
Wed Dec 05, 2007 7:17 am
Forum: Volume 109 (10900-10999)
Topic: 10924 - Prime Words
Replies: 44
Views: 22517

Code: Select all

removed*  
can anyone help me? i don't know why i got WA for this.
by laicc86
Mon Nov 19, 2007 4:38 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36994

#include <stdio.h> #include <string.h> int main() { char ch[1001]; int i,asc,temp,temp2,ch_temp,ch_temp2,ch_num; while (gets(ch)) { int l[1001]={0},k[1001]={0},q=0,w=0,e; ch_num=strlen(ch); for (i=0;i<ch_num;i++) { asc=ch[i]; l[asc]++; } for (i=32,e=0;i<128;i++) { if (l[i]!=NULL) { ch[e]=i; k[e]=l[...
by laicc86
Thu Oct 25, 2007 6:58 pm
Forum: Volume 9 (900-999)
Topic: 913 - Joana and the Odd Numbers
Replies: 32
Views: 13821

after i changed the function to

Code: Select all

long long odd_num(long long num)
the Verdict become CE...
i deleted the odd_num and type into main...
it become AC...
it seems like ACM doesn't accept function!? :o

and thx anyway Jan~ :D
by laicc86
Thu Oct 25, 2007 1:46 pm
Forum: Volume 9 (900-999)
Topic: 913 - Joana and the Odd Numbers
Replies: 32
Views: 13821

Code: Select all

deleted after AC
i get RE for this...can anyone help me? thx

Go to advanced search