結果

問題 No.231 めぐるはめぐる (1)
コンテスト
ユーザー kaffelun
提出日時 2017-11-21 15:34:07
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 549µs
コード長 379 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 759 ms
コンパイル使用メモリ 179,048 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2026-09-30 06:23:51
合計ジャッジ時間 2,120 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
int main() {
	int N;
	cin >> N;
	int p = 0;
	int id = 0;
	int g, d;
	for(int i = 0; i < N; i++) {
		cin >> g >> d;
		int ex = g - 30000 * d;
		if(p < ex) {
			p = ex;
			id = i + 1;
		}
	}
	if(p * 6 < 30000 * 100) cout << "NO" << endl;
	else {
		cout << "YES" << endl;
		for(int i = 0; i < 6; i++) cout << id << endl;
	}
	return 0;
}
0