結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | kotatsugame |
提出日時 | 2017-10-01 03:41:09 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 159 ms / 2,000 ms |
コード長 | 97 bytes |
コンパイル時間 | 1,419 ms |
コンパイル使用メモリ | 27,136 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 21:03:34 |
合計ジャッジ時間 | 5,753 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,820 KB |
testcase_01 | AC | 6 ms
6,820 KB |
testcase_02 | AC | 4 ms
6,820 KB |
testcase_03 | AC | 12 ms
6,816 KB |
testcase_04 | AC | 1 ms
6,820 KB |
testcase_05 | AC | 1 ms
6,820 KB |
testcase_06 | AC | 1 ms
6,816 KB |
testcase_07 | AC | 1 ms
6,816 KB |
testcase_08 | AC | 1 ms
6,816 KB |
testcase_09 | AC | 8 ms
6,816 KB |
testcase_10 | AC | 159 ms
6,816 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^ main.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^~~~ main.c: In function 'main': main.c:1:7: warning: type of 'n' defaults to 'int' [-Wimplicit-int] main.c:1:19: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} | ^~~~~ main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:58: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;} |
ソースコード
a,b,c;main(n){for(scanf("%d",&n);a++<n;)for(b=a;n/b;c<b||printf("%d %d %d\n",a,b,c),b++)c=n-a-b;}