結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-28 23:44:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 437 ms |
| コンパイル使用メモリ | 54,516 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 00:10:59 |
| 合計ジャッジ時間 | 1,187 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<iostream>
using namespace std;
#define NMAX 50
int main(){
int N;
int maxn=-1,maxi=-1;
int G,D;
cin>>N;
for(int i=0;i<N;i++){
cin>>G>>D;
if(G-30000*D>maxn) maxn=G-30000*D,maxi=i+1;
}
if(maxi==-1||maxn<500000) cout<<"NO"<<endl;
else{
cout<<"YES"<<endl;
for(int i=0;i<6;i++) cout<<maxi<<endl;
}
}
kongarishisyamo