結果

問題 No.146 試験監督(1)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-11 12:28:50
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 3,032 ms
コンパイル使用メモリ 68,856 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-13 02:55:33
合計ジャッジ時間 3,810 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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.float / 2.0).ceil.int.trfm * D.trfm
  cnt = cnt.trfm

echo cnt
0