結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-16 17:15:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 417 bytes |
| コンパイル時間 | 454 ms |
| コンパイル使用メモリ | 54,612 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 00:08:05 |
| 合計ジャッジ時間 | 1,155 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <iostream>
using namespace std;
#define REP(i,n) for (int i=0;i<(n);i++)
int main(){
int n = 0;
cin >> n;
REP(i, n) {
int g, d;
cin >> g >> d;
int r = g - d * 30000;
if(r * 6 >= 3000000) {
cout << "YES" << endl;
REP(j, 6) {
cout << i+1 << endl;
}
exit(0);
}
}
cout << "NO" << endl;
}