結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
Naoyk1212
|
| 提出日時 | 2017-02-11 10:13:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 1,277 ms |
| コンパイル使用メモリ | 158,536 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-29 11:59:24 |
| 合計ジャッジ時間 | 2,074 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int n;
cin >> n;
int a, b;
int ans = -1;
for(int i = 0; i < n; i++){
cin >> a >> b;
if((a - b * 30000) * 6 >= 3000000){
ans = i + 1;
}
}
if(ans > 0){
cout << "YES" << endl;
for(int i = 0; i < 6; i++)cout << ans << endl;
}else{
cout << "NO" << endl;
}
}
Naoyk1212