結果

問題 No.146 試験監督(1)
ユーザー MitI_7MitI_7
提出日時 2015-12-12 11:28:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 273 ms / 1,000 ms
コード長 215 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-10-13 11:40:29
合計ジャッジ時間 1,910 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 272 ms
7,896 KB
testcase_01 AC 273 ms
7,788 KB
testcase_02 AC 270 ms
7,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


def main():
    n = int(input())
    ans = 0
    for _ in range(n):
        c, d = map(int, input().split())
        ans += (c + 1) // 2 * d

    print(ans % (10 ** 9 + 7))


if __name__ == '__main__':
    main()
0