結果
問題 | No.8090 Knapsack Function |
ユーザー |
![]() |
提出日時 | 2022-04-01 21:27:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 28,828 KB |
最終ジャッジ日時 | 2024-11-20 08:09:53 |
合計ジャッジ時間 | 2,645 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 1 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) B=[tuple(map(int,input().split())) for i in range(N)] B.sort(key=lambda x:x[0]/x[1],reverse=True) if B[0][1]==1: print("Yes") else: print("No")