結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-26 22:27:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-07-07 17:43:40 |
| 合計ジャッジ時間 | 2,076 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 8 |
ソースコード
N = int(raw_input())
exp = 3000000
GD = [map(int, raw_input().split()) + [i] for i in xrange(N)]
G = sorted([[g - exp / 100 * d, i] for g, d, i in GD], reverse = True)
if 6 * max(G)[0] >= exp:
print "YES"
for i in xrange(6):
print max(G)[1]
else:
print "NO"