結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-24 19:26:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 490 ms |
| コンパイル使用メモリ | 62,976 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 16:03:06 |
| 合計ジャッジ時間 | 1,629 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include<iostream>
using namespace std;
typedef long long ll;
#define NUM 1000000007
int main(){
int n;
ll c1, d1, ans = 0;
cin >> n;
while(n-- > 0){
cin >> c1 >> d1;
ll people = ((c1+1)/2)%NUM;
ans += ((d1%NUM) * people) % NUM;
}
cout << ans << endl;
return 0;
}