結果
問題 | No.146 試験監督(1) |
ユーザー | weaken |
提出日時 | 2020-11-15 02:39:47 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 1,894 ms |
コンパイル使用メモリ | 196,696 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-30 06:42:35 |
合計ジャッジ時間 | 2,923 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
#include <bits/stdc++.h> #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) #define precise(i) fixed << setprecision(i) #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { fastIO; int n; cin >> n; long long cnt = 0; for (int i = 0; i < n; i++) { long long c, d; cin >> c >> d; cnt += (c + 1) / 2 * d; } cout << cnt << '\n'; return 0; }