結果
| 問題 | No.1108 移調 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-31 00:28:25 |
| 言語 | Standard ML (MLton 20210117) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 568 bytes |
| 記録 | |
| コンパイル時間 | 6,063 ms |
| コンパイル使用メモリ | 687,352 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-31 00:28:33 |
| 合計ジャッジ時間 | 4,683 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
fun intString n =
if 0 <= n
then Int.toString n
else "-" ^ Int.toString (abs n)
fun printAns [] = print "\n"
| printAns [x] =
(print (intString x);
printAns [])
| printAns (h :: tl) =
(print (intString h);
print " ";
printAns tl)
val () =
let
val n = readInt ()
val h = readInt ()
val ts = List.tabulate (n, fn _ => readInt ())
val ans = List.map (fn t => t + h) ts
in
printAns ans
end