結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2025-07-15 12:19:23 |
言語 | Standard ML (MLton 20210117) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 3,475 ms |
コンパイル使用メモリ | 687,224 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-15 12:19:29 |
合計ジャッジ時間 | 4,072 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
fun readInt () = valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn) val () = let val b_s = List.tabulate (9, fn _ => readInt ()) fun findAns [] i = i | findAns (h::tl) i = if h = i then findAns tl (i + 1) else i val ans = findAns b_s 1 in print ((Int.toString ans) ^ "\n") end