結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2015-12-16 17:20:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 418 ms |
コンパイル使用メモリ | 54,644 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 00:08:06 |
合計ジャッジ時間 | 1,121 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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, g, d, r; cin >> n; REP(i, n) { cin >> g >> d; r = g - d * 30000; if(r * 6 >= 3000000) { cout << "YES" << endl; REP(j, 6) { cout << i+1 << endl; } exit(0); } } cout << "NO" << endl; }