結果
| 問題 | No.975 ミスターマックスバリュ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-28 16:35:02 |
| 言語 | OCaml (5.4.1) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 22,800 KB |
| 実行使用メモリ | 7,296 KB |
| 最終ジャッジ日時 | 2026-04-25 04:51:27 |
| 合計ジャッジ時間 | 1,003 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
let x, n, m = Scanf.scanf "%d %d %d\n" (fun a b c -> a, b, c) let arr = Array.to_list (Array.init n (fun _ -> Scanf.scanf "%d " (fun x -> x))) let brr = Array.to_list (Array.init m (fun _ -> Scanf.scanf "%d " (fun x -> x))) let ans = if List.mem x arr && List.mem x brr then "MrMaxValu" else if List.mem x arr then "MrMax" else if List.mem x brr then "MaxValu" else "-1" let () = print_endline ans