結果
問題 | No.146 試験監督(1) |
ユーザー | toshiro_yanagi |
提出日時 | 2018-06-11 11:01:28 |
言語 | Nim (2.0.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 3,044 ms |
コンパイル使用メモリ | 69,212 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-13 02:54:15 |
合計ジャッジ時間 | 4,034 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 = 0 for i in 0 ..< N: (C, D) = stdin.readLine.split.map parseInt cnt += (C / 2).ceil.int.trfm * D.trfm cnt = cnt.trfm echo cnt