結果

問題 No.231 めぐるはめぐる (1)
ユーザー sggkshiosggkshio
提出日時 2016-10-30 21:37:53
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 639 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 80,968 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 19:57:30
合計ジャッジ時間 2,293 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#define _USE_MATH_DEFINES
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include<iomanip>

//#include<bits/stdc++.h>



using namespace std;


bool f[10008];
bool F[10008];

int main() {

	
	int n;
	cin>>n;
	pair<int,int>t[10005]={};
	for(int i=0;i<n;i++)
		cin>>t[i].first>>t[i].second;
	for(int i=0;i<n;i++){
		if(6*t[i].first-t[i].second*30000>=3000000){
			cout<<"YES"<<endl;
			for(int j=1;j<=6;j++)
				cout<<i+1<<endl;
			return 0;
		}
	}
	cout<<"NO"<<endl;

	return 0;
}


	
0