結果
問題 |
No.146 試験監督(1)
|
ユーザー |
![]() |
提出日時 | 2016-06-14 22:30:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 576 ms |
コンパイル使用メモリ | 64,316 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-09 13:49:10 |
合計ジャッジ時間 | 1,163 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 |
ソースコード
#include <iostream> #define FOR(i,a,b) for(i = a; i < b; i++) #define REP(i,n) FOR(i,0,n) int main() { int i, n, c, d; int ans = 0; int mod = 1000000007; std::cin >> n; REP(i, n) { std::cin >> c >> d; ans += ((c+1) / 2) * d; ans %= mod; } std::cout << ans << std::endl; return 0; }