結果

問題 No.231 めぐるはめぐる (1)
ユーザー pyranine
提出日時 2020-12-16 17:52:44
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 394 bytes
コンパイル時間 1,474 ms
コンパイル使用メモリ 165,664 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-20 05:11:15
合計ジャッジ時間 2,105 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n; cin >> n;
  int r = 0;
  for (int i = 0; i < n; i++) {
    int g, d;
    cin >> g >> d;
    r = g - d * 30000;
    if (r * 6 >= 3000000) {
      cout << "YES" << endl;
      for (int j = 0; j < 6; j++) {
        cout << i + 1 << endl;
      }
      break;
    }
  }
  if (r * 6 < 3000000) cout << "NO" << endl;
  return 0;
}
0