結果

問題 No.146 試験監督(1)
ユーザー aaaaaaiu
提出日時 2019-07-29 21:46:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 2,145 ms
コンパイル使用メモリ 192,664 KB
最終ジャッジ日時 2025-01-07 10:00:22
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int mod = 1e9+7;
    int n;
    cin >> n;
    ll ans = 0;
    while (n--) {
        ll c, d;
        cin >> c >> d;
        ans = (ans + (c+1)%mod/2*(d%mod))%mod;
    }
    cout << ans << endl;
    return 0;
}
0