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