結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
![]() |
提出日時 | 2020-08-19 02:22:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 1,000 ms |
コード長 | 489 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 65,664 KB |
最終ジャッジ日時 | 2024-10-12 03:27:27 |
合計ジャッジ時間 | 1,572 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
# import sys; input = sys.stdin.buffer.readline# sys.setrecursionlimit(10**7)from collections import defaultdictcon = 10 ** 9 + 7; INF = float("inf")def getlist():return list(map(int, input().split()))#処理内容def main():N = int(input())L = []for i in range(N):G, D = getlist()L.append([G - 30000 * D, i])L.sort()if L[-1][0] * 6 >= 3000000:print("YES")for i in range(6):print(L[-1][1] + 1)else:print("NO")if __name__ == '__main__':main()