結果
問題 | No.182 新規性の虜 |
ユーザー | 👑 testestest |
提出日時 | 2017-07-29 17:45:46 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 107 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 19:35:20 |
合計ジャッジ時間 | 1,374 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,816 KB |
testcase_01 | AC | 3 ms
6,816 KB |
testcase_02 | AC | 3 ms
6,816 KB |
testcase_03 | AC | 3 ms
6,820 KB |
testcase_04 | AC | 3 ms
6,820 KB |
testcase_05 | AC | 2 ms
6,816 KB |
testcase_06 | AC | 3 ms
6,816 KB |
testcase_07 | AC | 3 ms
6,816 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
6,820 KB |
testcase_14 | AC | 3 ms
6,816 KB |
testcase_15 | AC | 3 ms
6,820 KB |
testcase_16 | AC | 2 ms
6,816 KB |
testcase_17 | AC | 2 ms
6,816 KB |
testcase_18 | AC | 10 ms
6,820 KB |
testcase_19 | AC | 8 ms
6,816 KB |
testcase_20 | AC | 6 ms
6,816 KB |
testcase_21 | AC | 11 ms
6,816 KB |
testcase_22 | AC | 6 ms
6,820 KB |
testcase_23 | AC | 2 ms
6,816 KB |
testcase_24 | AC | 13 ms
6,816 KB |
testcase_25 | AC | 10 ms
6,820 KB |
testcase_26 | WA | - |
testcase_27 | AC | 2 ms
6,820 KB |
evil01.txt | AC | 16 ms
6,816 KB |
evil02.txt | AC | 16 ms
6,820 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 't' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^ main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^ main.c:1:16: warning: return type defaults to 'int' [-Wimplicit-int] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^~~~ main.c: In function 'main': main.c:1:16: warning: type of 'j' defaults to 'int' [-Wimplicit-int] main.c:1:30: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} main.c:1:30: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);} | ^~~~~ main.c:1:30: note: include
ソースコード
t,i,s,a[1<<20];main(j){for(;~scanf("%d",&j);t=1)a[j%(1<<20)]+=t;for(;i<1<<20;)s+=a[i++]==1;printf("%d",s);}