結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-03 00:01:17 |
| 言語 | Standard ML (MLton 20241230) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 656µs | |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 4,894 ms |
| コンパイル使用メモリ | 704,520 KB |
| 実行使用メモリ | 9,900 KB |
| 最終ジャッジ日時 | 2026-10-12 08:37:49 |
| 合計ジャッジ時間 | 6,172 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
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