結果
問題 | No.2560 A_1 < A_2 < ... < A_N |
ユーザー | wotsushi |
提出日時 | 2023-12-10 14:06:41 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 130 bytes |
コンパイル時間 | 931 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-27 04:05:04 |
合計ジャッジ時間 | 2,537 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 15 ms
5,376 KB |
testcase_02 | AC | 18 ms
5,376 KB |
testcase_03 | AC | 15 ms
5,376 KB |
testcase_04 | AC | 18 ms
5,376 KB |
testcase_05 | AC | 19 ms
5,376 KB |
testcase_06 | AC | 32 ms
5,376 KB |
testcase_07 | AC | 31 ms
5,376 KB |
testcase_08 | AC | 32 ms
5,376 KB |
testcase_09 | AC | 32 ms
5,376 KB |
testcase_10 | AC | 32 ms
5,376 KB |
testcase_11 | AC | 1 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'N' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^ main.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int] 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^~~~ main.c: In function 'main': main.c:1:18: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^~~~ main.c:1:33: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} main.c:1:33: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}} | ^~~~~ main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:93: warning: implicit declaration of funct
ソースコード
N,i;main(long X){gets(&i);for(;~scanf("%d%ld",&N,&X);){N<2*X/N||(X=-1,N=1);for(i=0;--N;X-=i)printf("%d ",++i);printf("%ld\n",X);}}