結果

問題 No.182 新規性の虜
ユーザー testestesttestestest
提出日時 2017-07-29 20:08:09
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 107 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 30,336 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-19 03:47:03
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 7 ms
5,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 1 ms
5,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 1 ms
5,376 KB
testcase_24 AC 12 ms
5,376 KB
testcase_25 WA -
testcase_26 AC 2 ms
5,376 KB
testcase_27 AC 1 ms
5,376 KB
evil01.txt AC 13 ms
5,376 KB
evil02.txt AC 14 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      | ^
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(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |   ^
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(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |     ^
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(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |       ^
main.c:1:16: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |                ^~~~
main.c: In function 'main':
main.c:1:16: warning: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:30: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |                              ^~~~~
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(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
main.c:1:30: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
      |                              ^~~~~
main.c:1:30: note: include

ソースコード

diff #

i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
0