結果
問題 | No.146 試験監督(1) |
ユーザー | shinichi |
提出日時 | 2021-07-10 16:03:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 163 ms / 1,000 ms |
コード長 | 163 bytes |
コンパイル時間 | 259 ms |
コンパイル使用メモリ | 87,096 KB |
実行使用メモリ | 77,472 KB |
最終ジャッジ日時 | 2023-09-14 19:35:59 |
合計ジャッジ時間 | 1,509 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 163 ms
77,208 KB |
testcase_01 | AC | 158 ms
77,128 KB |
testcase_02 | AC | 159 ms
77,472 KB |
ソースコード
n = int(input()) result = 0 mod = 10**9+7 for _ in range(n): a, b = map(int, input().split()) result += ((a>>1)+(a&1)) * b result %= mod print(result)