結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,720 KB
testcase_01 AC 3 ms
5,736 KB
testcase_02 AC 4 ms
5,632 KB
testcase_03 AC 3 ms
5,728 KB
testcase_04 AC 3 ms
5,632 KB
testcase_05 AC 3 ms
5,816 KB
testcase_06 AC 3 ms
5,780 KB
testcase_07 AC 4 ms
5,696 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 3 ms
5,636 KB
testcase_14 AC 4 ms
5,776 KB
testcase_15 AC 3 ms
5,732 KB
testcase_16 AC 3 ms
5,632 KB
testcase_17 AC 3 ms
5,728 KB
testcase_18 AC 10 ms
5,736 KB
testcase_19 AC 9 ms
5,636 KB
testcase_20 AC 7 ms
5,732 KB
testcase_21 AC 11 ms
5,688 KB
testcase_22 AC 7 ms
5,796 KB
testcase_23 AC 3 ms
5,780 KB
testcase_24 AC 14 ms
5,628 KB
testcase_25 AC 10 ms
5,812 KB
testcase_26 WA -
testcase_27 AC 3 ms
5,736 KB
evil01.txt WA -
evil02.txt AC 18 ms
5,724 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 999983
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 999983
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