結果

問題 No.146 試験監督(1)
ユーザー mkanenobumkanenobu
提出日時 2018-03-30 23:12:58
言語 Nim
(2.0.2)
結果
RE  
実行時間 -
コード長 317 bytes
コンパイル時間 2,848 ms
コンパイル使用メモリ 68,036 KB
実行使用メモリ 4,876 KB
最終ジャッジ日時 2023-09-12 17:58:52
合計ジャッジ時間 3,950 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 34) Warning: imported and not used: 'algorithm' [UnusedImport]

ソースコード

diff #

import sequtils, strutils, math, algorithm

var
    n = readLine(stdin).parseInt
    c = newSeq[int](n)
    d = newSeq[int](n)
    res:int
for i in 0..<n:
    (c[i],d[i]) =  readLine(stdin).split.map(parseInt)

for i in 0..<n:
    var canSit = int(ceil(c[i] / 2))
    res += canSit * d[i]

echo res mod int(10e9 + 7)
0