結果
問題 | No.397 NO MORE KADOMATSU |
ユーザー | testestest |
提出日時 | 2016-07-17 15:21:33 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 657 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 936.56 |
最終ジャッジ日時 | 2024-11-07 09:06:23 |
合計ジャッジ時間 | 3,092 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 25 ms
25,220 KB |
testcase_01 | AC | 24 ms
24,580 KB |
testcase_02 | WA | - |
testcase_03 | AC | 24 ms
25,220 KB |
testcase_04 | AC | 24 ms
24,964 KB |
testcase_05 | AC | 25 ms
24,580 KB |
testcase_06 | AC | 26 ms
24,580 KB |
testcase_07 | AC | 27 ms
24,964 KB |
testcase_08 | AC | 24 ms
24,964 KB |
testcase_09 | WA | - |
testcase_10 | AC | 51 ms
25,220 KB |
testcase_11 | WA | - |
testcase_12 | AC | 31 ms
25,216 KB |
testcase_13 | AC | 36 ms
24,964 KB |
testcase_14 | AC | 36 ms
25,220 KB |
testcase_15 | AC | 34 ms
24,580 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
コンパイルメッセージ
main.c:1:3: warning: multi-character character constant [-Wmultichar] 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} | ^~~~ main.c:1:1: warning: data definition has no type or storage class 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} | ^ main.c:1:19: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} | ^~~~ main.c: In function ‘main’: main.c:1:19: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] main.c:1:39: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););} |
ソースコード
a['~~'],i,b[5000];main(j){for(;*a-~i;)scanf("%d",a-i--);for(;a[++j]?a[j-1]>a[j]?a[j]^=a[j-1]^=a[j]^=a[j-1],b[++*b]=j:1:++i<0?j=1:b[i]&&!fflush(!printf("%d %d\n"+!i*3,b[i]-!!i*2,b[i]-1)););}