結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
kyabaria
|
| 提出日時 | 2018-09-12 17:40:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 342 bytes |
| コンパイル時間 | 1,731 ms |
| コンパイル使用メモリ | 166,584 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 05:27:42 |
| 合計ジャッジ時間 | 2,744 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define INF 1000000000
#define MOD 1000000007
using namespace std;
int main(void){
int n;
cin>>n;
ll ans=0;
for(int i=0;i<n;i++){
ll c,d;
cin>>c>>d;
c%=MOD;
d%=MOD;
ans+=(((c+1)/2)%MOD)*d%MOD;
ans%=MOD;
}
cout<<ans<<endl;
}
kyabaria