結果

問題 No.146 試験監督(1)
ユーザー yukirinyukirin
提出日時 2015-04-25 16:30:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 363 ms / 1,000 ms
コード長 183 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 24,512 KB
最終ジャッジ日時 2023-09-18 11:16:06
合計ジャッジ時間 2,116 ms
ジャッジサーバーID
(参考情報)
judge15 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
desks = [[int(j) for j in input().split()] for i in range(n)]

total = 0
for c, d in desks:
    a, m = divmod(c, 2)
    total += (a + m) * d
print(total % 1000000007)
0