結果
問題 | No.146 試験監督(1) |
ユーザー | toshiro_yanagi |
提出日時 | 2018-06-11 11:47:14 |
言語 | Nim (2.0.2) |
結果 |
TLE
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 3,070 ms |
コンパイル使用メモリ | 68,364 KB |
実行使用メモリ | 11,480 KB |
最終ジャッジ日時 | 2023-09-13 02:55:13 |
合計ジャッジ時間 | 7,662 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
ソースコード
import strutils, sequtils, math const num = 10 ^ 9 + 7 proc trfm(x: uint|float): auto = (x.int mod num).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 while cnt >= num.uint: cnt -= num.uint echo cnt