結果

問題 No.146 試験監督(1)
ユーザー maspymaspy
提出日時 2020-01-21 23:31:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 98 ms / 1,000 ms
コード長 239 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 10,468 KB
実行使用メモリ 25,828 KB
最終ジャッジ日時 2023-09-20 17:19:47
合計ジャッジ時間 1,194 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
m = map(int,read().split())
CD = zip(m,m)

x = sum((c+1)//2 * d for c,d in CD)
x %= 10**9 + 7
print(x)
0