結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
hirokazu1020
|
| 提出日時 | 2015-07-25 18:30:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 744 bytes |
| コンパイル時間 | 753 ms |
| コンパイル使用メモリ | 83,276 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 23:42:57 |
| 合計ジャッジ時間 | 1,425 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<sstream>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<numeric>
#include<functional>
#include<algorithm>
#include<bitset>
using namespace std;
#define INF (1<<29)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define uniq(v) v.erase(unique(all(v)),v.end())
#define indexOf(v,x) (find(all(v),x)-v.begin())
int main(){
int n;
vector<int> v;
cin>>n;
rep(i,n){
int g,d;
cin>>g>>d;
if(30000*100<=6*(g-30000*d))v.push_back(i+1);
}
if(v.empty())cout<<"NO"<<endl;
else{
cout<<"YES"<<endl;
srand(114514);
rep(i,6)cout<<v[rand()%v.size()]<<endl;
}
return 0;
}
hirokazu1020