結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-03 00:01:17 |
| 言語 | Standard ML (MLton 20210117) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 6,646 ms |
| コンパイル使用メモリ | 686,972 KB |
| 実行使用メモリ | 7,712 KB |
| 最終ジャッジ日時 | 2025-11-03 00:01:24 |
| 合計ジャッジ時間 | 5,080 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
fun printAns nil = ignore ()
| printAns (h :: tl) =
if h mod 8 = 0 andalso h mod 10 = 0 then (print "ikisugi\n"; printAns tl)
else if h mod 8 = 0 then (print "iki\n"; printAns tl)
else if h mod 10 = 0 then (print "sugi\n"; printAns tl)
else (print (Int.toString (h div 3) ^ "\n"); printAns tl)
val () =
let
val i = readInt ()
val n_s = List.tabulate (i, fn _ => readInt ())
in
printAns n_s
end