結果

問題 No.146 試験監督(1)
ユーザー troro_kelptroro_kelp
提出日時 2018-08-28 17:30:48
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,133 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 96,208 KB
実行使用メモリ 8,432 KB
最終ジャッジ日時 2023-09-23 03:03:47
合計ジャッジ時間 1,949 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <cmath>
#include <queue>
#include <numeric>
#include <climits>
#include <iterator>
#include <iomanip>
#include <stack>
#include <set>
#include <bitset>
#include <functional>
using namespace std;
const constexpr int INF = 1e9;
//typedef std::pair<std::string,double> P;


#define FOR(i, a, n) for (ll i = (ll)a; i<(ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)

typedef long long ll;
typedef vector<int> VI;
const constexpr ll MOD = 1e9+7;
vector<pair<int, int> > vp;
 
struct Less {
    bool operator()(const pair<int, int>& x, const pair<int, int>& y) const {
        return x.first > y.first;
    }
};

ll GCD(ll a, ll b){
    if(b==0) return a;
    return GCD(b, a%b);
}


//グラフの隣接リスト
VI g[200010];
//頂点の入次数を管理
int h[100010];
string s;
int a[100010];
int b[100010]={INF};
int main(void) {
    int N; cin >> N;
    
    ll ans =0;
    REP(i, N){
        ll C, D; cin >> C >> D;
        C = C%MOD; D=D%MOD;
        ans += (C*D)%MOD;
        ans = ans %MOD;
    }
    
    cout << ans << endl;
    
}
0