結果

問題 No.1137 Circles
ユーザー 👑 KazunKazun
提出日時 2020-07-26 22:38:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 555 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 83,708 KB
最終ジャッジ日時 2023-09-11 05:09:09
合計ジャッジ時間 4,525 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
82,284 KB
testcase_01 AC 157 ms
83,648 KB
testcase_02 AC 109 ms
83,100 KB
testcase_03 AC 137 ms
83,252 KB
testcase_04 AC 145 ms
83,512 KB
testcase_05 AC 118 ms
83,492 KB
testcase_06 AC 154 ms
83,584 KB
testcase_07 AC 129 ms
83,632 KB
testcase_08 AC 155 ms
83,624 KB
testcase_09 AC 125 ms
83,464 KB
testcase_10 AC 136 ms
83,360 KB
testcase_11 AC 136 ms
83,368 KB
testcase_12 AC 166 ms
83,336 KB
testcase_13 AC 125 ms
83,248 KB
testcase_14 AC 165 ms
83,496 KB
testcase_15 AC 127 ms
83,708 KB
testcase_16 AC 135 ms
83,456 KB
testcase_17 AC 112 ms
83,108 KB
testcase_18 AC 155 ms
83,464 KB
testcase_19 AC 129 ms
83,504 KB
testcase_20 AC 122 ms
83,700 KB
testcase_21 AC 88 ms
82,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input());G=10**5;K=[0]*(8*G+1)
for _ in range(N):
    x,r=map(int,input().split());K[2*(x-r)+4*G+1]+=1;K[2*(x+r)+4*G]-=1
a=0
for i in range(8*G+1):
    a+=K[i];K[i]=a
print(max(K))
0