Search found 3 matches

by 86400
Sat Dec 15, 2012 9:56 am
Forum: Volume 115 (11500-11599)
Topic: 11547 - Automatic Answer
Replies: 15
Views: 5677

Re: 11547 Automatic Answer

brianfry713 wrote:Yes, but you're still probably not going to get a runtime <0.004 sec.

read() and write() are faster than getchar() and putchar()
thank :D
by 86400
Sat Dec 15, 2012 3:38 am
Forum: Volume 115 (11500-11599)
Topic: 11547 - Automatic Answer
Replies: 15
Views: 5677

Re: 11547 Automatic Answer

brianfry713 wrote:Your code doesn't match the sample I/O.

You probably won't be able to get a time better than 0.004 sec. Even this C code gets WA in 0.004 sec.

Code: Select all

main(){}
Thank. But I think putchar is faster than printf ???
by 86400
Thu Dec 13, 2012 12:14 am
Forum: Volume 115 (11500-11599)
Topic: 11547 - Automatic Answer
Replies: 15
Views: 5677

11547 Automatic Answer

I submitted this code for 11547 Automatic Answer problem and get 0.004=>0.008s. I'm a newbie and I wan't It's better (time < 0.004s). Please help me ...

#include <stdio.h>
#include <string.h>
int t, n;
char R[]={'0','2','3','5','6','8','9','1','2','4','5','7','8','0','1','3','4','6','7','9'};
int ...

Go to advanced search