結果

問題 No.231 めぐるはめぐる (1)
ユーザー Yang33
提出日時 2016-01-05 22:21:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 54,616 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 11:31:11
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(void)
{
	long int i, k,n, g[1010], d[1010],max=0, count;

	cin >> n;
	for (i = 0; i < n; i++) {
		cin >> g[i] >> d[i];
		if (max < (g[i] - 30000 * d[i]))
			max = g[i] - 30000 * d[i];
		count = i+1;
	}
	if (3000000 > 6*max)cout << "NO" << endl;
	else {
		cout << "YES" << endl;
		for (k = 0; k < 6; k++)
			cout << count << endl;
	}
	return 0;
}
0