結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
![]() |
提出日時 | 2018-02-21 01:06:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 585 ms |
コンパイル使用メモリ | 68,696 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 15:47:14 |
合計ジャッジ時間 | 1,962 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 5 |
ソースコード
#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(3000000>m*6) cout << "NO\n"; else{ cout <<"YES\n"; for(i=0;i<6;i++) cout << ans << endl; } return 0; }