結果

問題 No.1570 Blocks
ユーザー convexineqconvexineq
提出日時 2021-07-09 08:24:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 328 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 86,264 KB
実行使用メモリ 92,428 KB
最終ジャッジ日時 2023-09-14 06:22:19
合計ジャッジ時間 14,864 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,280 KB
testcase_01 AC 69 ms
71,340 KB
testcase_02 AC 232 ms
86,760 KB
testcase_03 AC 283 ms
88,860 KB
testcase_04 AC 222 ms
85,212 KB
testcase_05 AC 220 ms
86,604 KB
testcase_06 AC 228 ms
87,152 KB
testcase_07 AC 117 ms
78,100 KB
testcase_08 AC 274 ms
89,060 KB
testcase_09 AC 307 ms
90,968 KB
testcase_10 AC 249 ms
88,576 KB
testcase_11 AC 277 ms
89,120 KB
testcase_12 AC 309 ms
91,236 KB
testcase_13 AC 303 ms
90,620 KB
testcase_14 AC 301 ms
92,384 KB
testcase_15 AC 185 ms
83,404 KB
testcase_16 AC 300 ms
92,052 KB
testcase_17 AC 182 ms
83,232 KB
testcase_18 AC 271 ms
88,832 KB
testcase_19 AC 186 ms
83,600 KB
testcase_20 AC 188 ms
83,352 KB
testcase_21 AC 255 ms
87,364 KB
testcase_22 AC 69 ms
71,444 KB
testcase_23 AC 75 ms
71,144 KB
testcase_24 AC 72 ms
71,372 KB
testcase_25 AC 69 ms
71,432 KB
testcase_26 AC 71 ms
71,584 KB
testcase_27 AC 71 ms
71,596 KB
testcase_28 AC 70 ms
71,284 KB
testcase_29 AC 70 ms
71,560 KB
testcase_30 AC 69 ms
71,556 KB
testcase_31 AC 70 ms
71,180 KB
testcase_32 AC 310 ms
90,972 KB
testcase_33 AC 328 ms
91,272 KB
testcase_34 AC 296 ms
90,292 KB
testcase_35 AC 322 ms
90,928 KB
testcase_36 AC 307 ms
90,588 KB
testcase_37 AC 301 ms
90,888 KB
testcase_38 AC 309 ms
91,052 KB
testcase_39 AC 310 ms
92,184 KB
testcase_40 AC 301 ms
90,528 KB
testcase_41 AC 324 ms
90,900 KB
testcase_42 AC 321 ms
91,980 KB
testcase_43 AC 314 ms
92,008 KB
testcase_44 AC 320 ms
92,264 KB
testcase_45 AC 317 ms
91,980 KB
testcase_46 AC 313 ms
92,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int,input().split())) for _ in range(n)]
ab.sort(key = sum)
w = 0
for a,b in ab:
    if w > b:
        print("No")
        exit()
    w += a
print("Yes")
0