結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-03 00:01:17 |
| 言語 | Standard ML (MLton 20241230) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 708µs | |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 5,033 ms |
| コンパイル使用メモリ | 704,740 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-16 07:14:59 |
| 合計ジャッジ時間 | 6,324 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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