結果

問題 No.146 試験監督(1)
コンテスト
ユーザー ふう
提出日時 2015-02-22 15:33:23
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 691 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 477 ms
コンパイル使用メモリ 104,904 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-09 05:40:15
合計ジャッジ時間 1,156 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code


#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <map>
#include <set>
#include <list>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <iomanip>
#include <functional>

#define SIZE 1005
#define INF 100000000
#define ll long long
#define FD(d) fixed << setprecision(d)
#define MOD 1000000007
     
using namespace std;
 
#define ll long long
 
typedef pair<int, int> Pa;

int main()
{
	ll n;

	cin >> n;

	ll res = 0;
	for (ll i = 0; i < n; i++) {
		ll c, d;
		cin >> c >> d;
		res += ((c + 1) / 2) * d;
	}
	cout << res << endl;

	return (0);
}
0