結果

問題 No.231 めぐるはめぐる (1)
ユーザー Naoyk1212Naoyk1212
提出日時 2017-02-10 14:03:36
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 1,374 ms
コンパイル使用メモリ 148,680 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-08-27 06:51:30
合計ジャッジ時間 3,153 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<int> v(n);

	int a, b;
	for(int i = 0; i < n; i++){
		cin >> a >> b;
		v[i] = a - b * 30000;
	}

	sort(v.begin(), v.end());
	
	if(3000000 <= v[n - 1] * 6){
		cout << "YES" << endl;
		for(int i = 0; i < 6; i++){
			cout << n << endl;
		}
	}else{
		cout << "NO" << endl;
	}
}
0