結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-28 23:42:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 469 ms |
| コンパイル使用メモリ | 55,640 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 12:23:44 |
| 合計ジャッジ時間 | 1,561 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 3 |
ソースコード
#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<50000) cout<<"NO"<<endl;
else{
cout<<"YES"<<endl;
for(int i=0;i<6;i++) cout<<maxi<<endl;
}
}
kongarishisyamo