結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | RK Python |
提出日時 | 2020-06-07 21:44:31 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 19 ms / 1,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 10,752 KB |
実行使用メモリ | 8,328 KB |
最終ジャッジ日時 | 2023-08-25 13:34:50 |
合計ジャッジ時間 | 1,507 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,320 KB |
testcase_01 | AC | 16 ms
7,824 KB |
testcase_02 | AC | 16 ms
7,788 KB |
testcase_03 | AC | 17 ms
8,240 KB |
testcase_04 | AC | 18 ms
8,212 KB |
testcase_05 | AC | 17 ms
8,300 KB |
testcase_06 | AC | 17 ms
8,328 KB |
testcase_07 | AC | 16 ms
7,804 KB |
testcase_08 | AC | 16 ms
7,772 KB |
testcase_09 | AC | 16 ms
7,788 KB |
testcase_10 | AC | 16 ms
7,852 KB |
testcase_11 | AC | 16 ms
7,892 KB |
testcase_12 | AC | 18 ms
8,320 KB |
ソースコード
N = int(input()) exps = [[j,[int(i) for i in input().split()]] for j in range(N)] exps.sort(key = lambda x : x[1][0] - 30000*x[1][1], reverse=True) best = exps[0] exp = best[1][0] - 30000*best[1][1] if exp*6 >= 30000*100: print("YES") print("\n".join([str(best[0] + 1)]*6)) else: print("NO")