結果

問題 No.146 試験監督(1)
ユーザー GrayCoderGrayCoder
提出日時 2018-02-25 16:17:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 373 ms / 1,000 ms
コード長 210 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 25,088 KB
最終ジャッジ日時 2024-04-26 18:00:45
合計ジャッジ時間 2,433 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 372 ms
25,088 KB
testcase_01 AC 373 ms
25,088 KB
testcase_02 AC 363 ms
25,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    CD = tuple(tuple(map(int, input().split())) for _ in [0] * N)

    n = 0
    m = 1000000007
    for c, d in CD:
        n += ((c + 1) // 2 * d) % m
    print(n % m)

main()
0