結果
問題 | No.216 FAC |
ユーザー | 👑 testestest |
提出日時 | 2017-07-29 07:48:00 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 117 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 21:24:59 |
合計ジャッジ時間 | 932 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,816 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
6,820 KB |
testcase_04 | AC | 1 ms
6,816 KB |
testcase_05 | AC | 1 ms
6,816 KB |
testcase_06 | AC | 1 ms
6,820 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 1 ms
6,816 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 1 ms
6,816 KB |
testcase_13 | AC | 1 ms
6,816 KB |
testcase_14 | AC | 1 ms
6,816 KB |
testcase_15 | WA | - |
testcase_16 | AC | 1 ms
6,820 KB |
testcase_17 | AC | 1 ms
6,816 KB |
testcase_18 | AC | 1 ms
6,816 KB |
testcase_19 | AC | 1 ms
6,820 KB |
testcase_20 | WA | - |
testcase_21 | AC | 1 ms
6,820 KB |
testcase_22 | AC | 1 ms
6,816 KB |
testcase_23 | AC | 1 ms
6,816 KB |
testcase_24 | WA | - |
testcase_25 | AC | 1 ms
6,820 KB |
testcase_26 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:8: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^ main.c:1:14: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^ main.c:1:16: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^ main.c:1:22: warning: return type defaults to 'int' [-Wimplicit-int] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^~~~ main.c: In function 'main': main.c:1:22: warning: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:36: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");} main.c:1:36: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i
ソースコード
a[202],b[99],n,k=101;main(i){for(;~scanf("%d",a+i)?n=++i/2:--i>n?b[a[i]]+=a[i+~n]:b[--k]<=*b;);puts(k>0?"NO":"YES");}