結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
youluoy
|
| 提出日時 | 2019-03-17 20:35:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 488 bytes |
| コンパイル時間 | 1,558 ms |
| コンパイル使用メモリ | 165,356 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 18:25:52 |
| 合計ジャッジ時間 | 2,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int mx = 0, ans = 0;
for(int i = 0; i < N; i++){
int a, b;
cin >> a >> b;
int ex = a - 30000 * b;
if(mx < ex){
mx = ex;
ans = i + 1;
}
}
if(mx * 6 >= 3000000){
printf("YES\n");
for(int i = 0; i < 6; i++){
printf("%d\n", ans);
}
}
else {
printf("NO\n");
}
return 0;
}
youluoy