結果
問題 | No.397 NO MORE KADOMATSU |
ユーザー | 👑 testestest |
提出日時 | 2016-07-16 00:40:17 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 39,756 KB |
最終ジャッジ日時 | 2024-07-17 00:09:55 |
合計ジャッジ時間 | 6,549 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[110],s,j,k,b[5000]; | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | a[110],s,j,k,b[5000]; | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | a[110],s,j,k,b[5000]; | ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | a[110],s,j,k,b[5000]; | ^ main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 1 | a[110],s,j,k,b[5000]; | ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | main(i){ | ^~~~ main.c: In function ‘main’: main.c:2:1: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:3:15: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 3 | for(;~scanf("%d",a-i);i--); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a[110],s,j,k,b[5000]; main.c:3:15: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 3 | for(;~scanf("%d",a-i);i--); | ^~~~~ main.c:3:15: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:5:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 5 | printf("%d\n",s); | ^~~~~~ main.c:5:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:5:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:5:9: note: include ‘<stdio.h>’ or provide a declaration of ‘p
ソースコード
a[110],s,j,k,b[5000]; main(i){ for(;~scanf("%d",a-i);i--); for(a[~i]=0;++i;)for(j=0;a[++j];)a[j-1]>a[j]?b[s++]=j,a[j]^=a[j-1]^=a[j]^=a[j-1]:0; printf("%d\n",s); for(;s=b[k];)fflush(!printf("%d %d\n",b[k++]-1,b[k])); }