結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2018-04-26 18:43:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 525 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 21:13:17 |
合計ジャッジ時間 | 1,423 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include<iostream> using namespace std; int main(){ int n, g, d, maxIndex = 0, maxExp = -1; cin >> n; for(int i = 0; i < n; i++){ cin >> g >> d; if(maxExp < g - 30000*d){ maxIndex = i; maxExp = g-30000*d; } } if(maxExp * 6 >= 30000*100){ cout << "YES" << endl; for(int i = 0; i < 6; i++) cout << maxIndex+1 << endl; }else{ cout << "NO" << endl; } return 0; }