結果

問題 No.146 試験監督(1)
ユーザー MitI_7
提出日時 2015-12-12 11:28:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 336 ms / 1,000 ms
コード長 215 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-09-15 08:38:21
合計ジャッジ時間 1,912 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

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