結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー testestesttestestest
提出日時 2015-08-09 21:32:39
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 22,996 KB
実行使用メモリ 5,780 KB
最終ジャッジ日時 2023-09-25 07:39:04
合計ジャッジ時間 614 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf("%d",s);
 ^~~~~~
main.c:6:1: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:6:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:1:
+#include <stdio.h>
 #define N 999991
main.c:6:1:
 printf("%d",s);
 ^~~~~~

ソースコード

diff #

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