結果
問題 | No.146 試験監督(1) |
ユーザー | toshiro_yanagi |
提出日時 | 2018-06-11 14:15:46 |
言語 | Nim (2.0.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 3,237 ms |
コンパイル使用メモリ | 71,364 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-13 02:56:46 |
合計ジャッジ時間 | 4,830 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
import strutils, sequtils, math proc trfm(x: int): int = x mod (10 ^ 9 + 7) let N = stdin.readLine.parseInt var C, D, cnt: int for i in 0 ..< N: (C, D) = stdin.readLine.split.map parseInt cnt += (C / 2).formatFloat(ffDecimal, 1).parseFloat.ceil.int.trfm * D.trfm cnt = cnt.trfm echo cnt