結果
| 問題 | No.2775 Nuisance Balls |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-09 01:04:30 |
| 言語 | Standard ML (MLton 20241230) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 841 bytes |
| 記録 | |
| コンパイル時間 | 6,371 ms |
| コンパイル使用メモリ | 704,236 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-09 01:04:45 |
| 合計ジャッジ時間 | 7,825 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
fun makeAns n =
let
fun makeAnsAux current =
if 720 <= current
then #"C" :: makeAnsAux (current - 720)
else if 360 <= current
then #"M" :: makeAnsAux (current - 360)
else if 180 <= current
then #"S" :: makeAnsAux (current - 180)
else if 30 <= current
then #"R" :: makeAnsAux (current - 30)
else if 6 <= current
then #"o" :: makeAnsAux (current - 6)
else if 1 <= current
then #"." :: makeAnsAux (current - 1)
else []
in
String.implode (makeAnsAux n)
end
val () =
let
val n = readInt ()
val ans = makeAns n
in
print (ans ^ "\n")
end