結果
問題 |
No.146 試験監督(1)
|
ユーザー |
![]() |
提出日時 | 2018-03-05 19:40:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 732 ms |
コンパイル使用メモリ | 63,836 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 13:26:54 |
合計ジャッジ時間 | 1,257 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 |
ソースコード
// No.146 試験監督(1) // https://yukicoder.me/problems/no/146 // #include <iostream> using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int N; cin >> N; long long ans = 0; for (auto i = 0; i < N; ++i) { long C, D; cin >> C >> D; long capacity = (C + 1) / 2 % 1000000007; D %= 1000000007; ans += capacity * D; } cout << ans % 1000000007 << endl; }