結果

問題 No.146 試験監督(1)
ユーザー 👑 obakyanobakyan
提出日時 2019-03-31 00:18:41
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 71,968 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-28 18:31:19
合計ジャッジ時間 2,330 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>

#define ASDF (1000000007)

int main(void)
{
	long n;
	long c, d;
	long tot = 0;
	std::cin >> n;
	for (long i = 0; i < n; i++) {
		std::cin >> c >> d;
		tot = (tot + ((c + 1) / 2) * d) % ASDF;
	}
	std::cout << tot << std::endl;
	return 0;
}
0