結果

問題 No.39 桁の数字を入れ替え
ユーザー antaanta
提出日時 2014-10-14 23:36:19
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 2,343 ms
コンパイル使用メモリ 157,452 KB
実行使用メモリ 6,968 KB
最終ジャッジ日時 2023-08-28 21:09:53
合計ジャッジ時間 3,431 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
6,740 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 3 ms
6,772 KB
testcase_06 AC 3 ms
6,828 KB
testcase_07 AC 3 ms
6,780 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 3 ms
6,844 KB
testcase_15 AC 3 ms
6,824 KB
testcase_16 AC 2 ms
6,760 KB
testcase_17 AC 3 ms
6,832 KB
testcase_18 AC 3 ms
6,820 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

main = interact (\s-> let n = length s in maximum [ take i s ++ [s !! j] ++ drop (i+1) (take j s) ++ [s !! i] ++ drop (j+1) s  | i <- [0..n-1], j <- [i..n-1] ])
0