AtCoder Grand Contest 013

Submission #1239721

Source codeソースコード

a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b&&(f=1),a<b&&(t=1),f&t&&(f=t=0,s++);printf("%d",s);}

Submission

Task問題 A - Sorted Arrays
User nameユーザ名 kotatsugame
Created time投稿日時
Language言語 C (GCC 5.4.1)
Status状態 AC
Score得点 300
Source lengthソースコード長 113 Byte
File nameファイル名
Exec time実行時間 12 ms
Memory usageメモリ使用量 128 KB

Compiler messageコンパイルメッセージ

./Main.c:1:1: warning: data definition has no type or storage class
a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b&&(f=1),a<b&&(t=1),f&t&&(f=t=0,s++);printf("%d",s);}
^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
./Main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b&&(f=1),a<b&&(t=1),f&t&&(f=t=0,s++);printf("%d",s);}
^
./Main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘f’ [-Wimplicit-int]
a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b&&(f=1),a<b&&(t=1),f&t&&(f=t=0,s++);printf("%d",s);}
^
./Main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b&&(f=1),a<b&&(t=1),f&t&&(f=t=0,s++);printf("%d",s);}
^
./Main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int]
a,b,f,t;main(s){for(scanf("%*d%d",&a);~scanf("%d",&b);a=b)a>b...

Test case

Set

Set name Score得点 / Max score Cases
Sample - sample_01.txt,sample_02.txt,sample_03.txt
All 300 / 300 sample_01.txt,sample_02.txt,sample_03.txt,sample_01.txt,sample_02.txt,sample_03.txt,subtask_1_01.txt,subtask_1_02.txt,subtask_1_03.txt,subtask_1_04.txt,subtask_1_05.txt,subtask_1_06.txt,subtask_1_07.txt,subtask_1_08.txt,subtask_1_09.txt,subtask_1_10.txt,subtask_1_11.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
sample_01.txt AC 1 ms 128 KB
sample_02.txt AC 1 ms 128 KB
sample_03.txt AC
subtask_1_01.txt AC 7 ms 128 KB
subtask_1_02.txt AC 6 ms 128 KB
subtask_1_03.txt AC 4 ms 128 KB
subtask_1_04.txt AC 12 ms 128 KB
subtask_1_05.txt AC 12 ms 128 KB
subtask_1_06.txt AC 12 ms 128 KB
subtask_1_07.txt AC 12 ms 128 KB
subtask_1_08.txt AC 12 ms 128 KB
subtask_1_09.txt AC 12 ms 128 KB
subtask_1_10.txt AC 1 ms 128 KB
subtask_1_11.txt AC 1 ms 128 KB