結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
Yang33
|
| 提出日時 | 2016-01-05 22:26:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 483 ms |
| コンパイル使用メモリ | 54,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 00:09:30 |
| 合計ジャッジ時間 | 1,143 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include<iostream>
using namespace std;
int main(void)
{
int i, k, n, g, d, max=0, count;
cin >> n;
for (i = 0; i < n; i++) {
cin >> g >> d;
if (max < (g - 30000 * d)) {
max = g - 30000 * d;
count = i + 1;
}
}
if (500000 > max)cout << "NO" << endl;
else {
cout << "YES" << endl;
for (k = 0; k < 6; k++)
cout << count << endl;
}
return 0;
}
Yang33