結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2020-07-06 12:36:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,710 ms |
コンパイル使用メモリ | 168,348 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 17:11:42 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) typedef long long ll; int main(){ int n; cin>>n; vector<int> v(n); int ans=-1; rep(i,n){ int g,d; cin>>g>>d; v[i]=g-(30000*d); if(v[i]>=500000) ans=i+1; } if(ans==-1) cout<<"NO"<<endl; else { cout<<"YES"<<endl; rep(i,6) cout<<ans<<endl; } }