結果
| 問題 | No.2647 [Cherry 6th Tune A] Wind |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-02 07:54:00 |
| 言語 | Standard ML (MLton 20241230) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,400 bytes |
| 記録 | |
| コンパイル時間 | 5,079 ms |
| コンパイル使用メモリ | 710,968 KB |
| 実行使用メモリ | 718,936 KB |
| 最終ジャッジ日時 | 2026-04-02 07:54:10 |
| 合計ジャッジ時間 | 7,617 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 8 MLE * 1 |
ソースコード
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
fun readLargeInt () =
valOf (TextIO.scanStream (LargeInt.scan StringCvt.DEC) TextIO.stdIn)
fun printList [] = print "\n"
| printList [x] =
(
print (LargeInt.toString x);
printList []
)
| printList (h :: tl) =
(
print (LargeInt.toString h);
print " ";
printList tl
)
fun printAns [] = ignore ()
| printAns (h :: tl) =
(
printList h;
printAns tl
)
val () =
let
val t = readInt ()
val cases = List.tabulate (t, fn _ =>
let
val d = readInt()
val a = readLargeInt()
val x_s = List.tabulate (d, fn _ => readLargeInt())
in
(d, a, x_s)
end
)
val ans = List.map (fn (d, a, x_s) =>
List.map (fn x =>
Real.toLargeInt IEEEReal.TO_NEAREST ((Real.fromLargeInt x) / (Real.fromLargeInt a)))
x_s)
cases
in
printAns ans
end