結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
![]() |
提出日時 | 2018-10-12 22:12:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 1,837 ms |
コンパイル使用メモリ | 167,020 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 17:52:35 |
合計ジャッジ時間 | 2,613 ms |
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n,g,d,ans = 0; cin >> n; for(int i = 0; i < n; i++){ cin >> g >> d; if(500000 <= g - 30000*d) ans = i + 1; } if(ans){ cout << "YES" << endl; for(int i = 0; i < 6; i++) cout << ans << endl; }else{ cout << "NO" << endl; } return 0; }