結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-03 12:16:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 1,306 ms |
| コンパイル使用メモリ | 157,408 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 15:10:14 |
| 合計ジャッジ時間 | 2,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define REP(i,b) FOR(i,0,b)
using ll = long long;
const ll mod = 1000000000+7;
const ll MAX_N=100000;
ll n,ans;
ll c[MAX_N+10],d[MAX_N+10];
int main(){
cin>>n;
REP(i,n){
cin>>c[i]>>d[i];
c[i]%=mod;
d[i]%=mod;
ans+=(((c[i]+1)%mod)/2)*d[i]%mod;
}
cout<<ans%mod<<endl;
return 0;
}