結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2018-03-14 16:33:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 538 bytes |
| コンパイル時間 | 884 ms |
| コンパイル使用メモリ | 80,300 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 21:04:59 |
| 合計ジャッジ時間 | 1,795 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
using namespace std;
typedef long long int ll;
int main(){
int n, g[1000], c[1000];
cin >> n;
for(int i=0; i<n; i++){
cin >> g[i] >> c[i];
}
for(int i=0; i<n; i++){
if(3000000<=6*(g[i]-30000*c[i])){
cout << "YES" << endl;
for(int j=0; j<6; j++){
cout << i+1 << endl;
}
return 0;
}
}
cout << "NO" << endl;
return 0;
}
tenkyu9