結果

問題 No.182 新規性の虜
ユーザー testestesttestestest
提出日時 2015-08-09 21:22:54
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 23,664 KB
実行使用メモリ 5,828 KB
最終ジャッジ日時 2023-09-25 07:38:04
合計ジャッジ時間 1,669 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,700 KB
testcase_01 AC 3 ms
5,748 KB
testcase_02 AC 3 ms
5,728 KB
testcase_03 AC 3 ms
5,768 KB
testcase_04 AC 3 ms
5,684 KB
testcase_05 AC 5 ms
5,824 KB
testcase_06 AC 3 ms
5,688 KB
testcase_07 AC 3 ms
5,688 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 4 ms
5,688 KB
testcase_14 AC 3 ms
5,736 KB
testcase_15 AC 4 ms
5,828 KB
testcase_16 AC 3 ms
5,748 KB
testcase_17 AC 4 ms
5,728 KB
testcase_18 AC 10 ms
5,768 KB
testcase_19 AC 8 ms
5,816 KB
testcase_20 AC 6 ms
5,736 KB
testcase_21 AC 11 ms
5,624 KB
testcase_22 AC 7 ms
5,624 KB
testcase_23 AC 3 ms
5,736 KB
testcase_24 AC 13 ms
5,736 KB
testcase_25 AC 10 ms
5,724 KB
testcase_26 WA -
testcase_27 AC 3 ms
5,628 KB
evil01.txt WA -
evil02.txt AC 17 ms
5,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 scanf("%d",&n);
 ^~~~~
main.c:4:1: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:1:
+#include <stdio.h>
 #define N 836591
main.c:4:1:
 scanf("%d",&n);
 ^~~~~
main.c:7:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf("%d",s);
 ^~~~~~
main.c:7:1: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:7:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

#define N 836591
int main(){
int a[1000000]={},s=0,n,i;
scanf("%d",&n);
for(;~scanf("%d",&n);)a[n%N]++;
for(i=0;i<N;i++)a[i]-1||s++;
printf("%d",s);
return 0;
}
0