結果
問題 | No.146 試験監督(1) |
ユーザー | 村上史弥 |
提出日時 | 2022-11-26 23:18:30 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 306 ms / 1,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 10,612 KB |
実行使用メモリ | 18,624 KB |
最終ジャッジ日時 | 2023-07-26 19:28:11 |
合計ジャッジ時間 | 2,397 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 304 ms
18,624 KB |
testcase_01 | AC | 306 ms
18,468 KB |
testcase_02 | AC | 301 ms
18,412 KB |
ソースコード
import math N = int(input()) C = [input() for n in range(N)] total = 0 mod = 10 ** 9 + 7 for i in range(N): c = C[i].split() cheer_num = ((int(c[0]) + 1) // 2) desk_num = cheer_num * int(c[1]) total += desk_num print(total % mod)