結果
問題 | No.365 ジェンガソート |
ユーザー | はむ吉🐹 |
提出日時 | 2016-05-05 16:00:32 |
言語 | OCaml (5.1.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 19,568 KB |
実行使用メモリ | 15,244 KB |
最終ジャッジ日時 | 2024-04-17 08:33:27 |
合計ジャッジ時間 | 2,805 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 2 ms
5,376 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 2 ms
5,376 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 2 ms
5,376 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 4 ms
5,376 KB |
testcase_19 | AC | 35 ms
14,408 KB |
testcase_20 | AC | 10 ms
6,528 KB |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | AC | 40 ms
15,224 KB |
testcase_37 | AC | 40 ms
15,224 KB |
testcase_38 | WA | - |
testcase_39 | AC | 37 ms
15,228 KB |
testcase_40 | WA | - |
コンパイルメッセージ
File "Main.ml", line 10, characters 5-6: 10 | | _ -> mnoo t ys ^ Warning 11 [redundant-case]: this match case is unused.
ソースコード
let words s = let r = Str.regexp " +" in Str.split r s let min_num_of_ops n xs = let rec mnoo t = function [] -> t | y :: ys -> match y with t -> mnoo (t - 1) ys | _ -> mnoo t ys in mnoo n (List.rev xs) let () = let n = read_int () in let xs = List.map int_of_string (words (read_line ())) in let ans = min_num_of_ops n xs in print_int ans