結果

問題 No.146 試験監督(1)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-11 11:41:21
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 3,878 ms
コンパイル使用メモリ 68,824 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-13 02:54:51
合計ジャッジ時間 4,175 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import strutils, sequtils, math

proc trfm(x: uint|float): auto = (x.int mod (10 ^ 9 + 7)).uint

let N = stdin.readLine.parseInt
var C, D, cnt: uint

for i in 0 ..< N:
  (C, D) = stdin.readLine.split.map parseUint
  cnt += (C.int / 2).ceil.trfm * D.trfm
  cnt = cnt.trfm

echo cnt
0