結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
![]() |
提出日時 | 2018-02-21 00:57:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 626 ms |
コンパイル使用メモリ | 68,528 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 15:36:11 |
合計ジャッジ時間 | 3,292 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 11 |
ソースコード
#include<iostream>#include<vector>#include<algorithm>#include<string>#include<cstdio>using namespace std;int main(){long long N,G,D,m=0,i,ans=0;cin >> N;for(i=0;i<N;i++){cin >> G >> D;if(m>(G-3000*D)){m = G-30000*D;ans = i+1;}}if(ans==0) cout << "NO";else{cout <<"YES\n";for(i=0;i<6;i++) cout << ans << endl;}return 0;}