結果

問題 No.202 1円玉投げ
ユーザー titiatitia
提出日時 2022-10-13 01:58:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 562 ms / 5,000 ms
コード長 519 bytes
コンパイル時間 1,381 ms
コンパイル使用メモリ 86,672 KB
実行使用メモリ 81,844 KB
最終ジャッジ日時 2023-09-08 18:44:35
合計ジャッジ時間 12,766 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 556 ms
80,552 KB
testcase_01 AC 251 ms
81,812 KB
testcase_02 AC 73 ms
75,472 KB
testcase_03 AC 72 ms
75,160 KB
testcase_04 AC 71 ms
75,144 KB
testcase_05 AC 111 ms
78,288 KB
testcase_06 AC 261 ms
80,540 KB
testcase_07 AC 294 ms
81,732 KB
testcase_08 AC 308 ms
81,384 KB
testcase_09 AC 197 ms
80,080 KB
testcase_10 AC 148 ms
79,196 KB
testcase_11 AC 169 ms
78,776 KB
testcase_12 AC 181 ms
79,716 KB
testcase_13 AC 143 ms
78,680 KB
testcase_14 AC 113 ms
78,164 KB
testcase_15 AC 201 ms
79,684 KB
testcase_16 AC 409 ms
81,156 KB
testcase_17 AC 460 ms
81,260 KB
testcase_18 AC 472 ms
81,360 KB
testcase_19 AC 186 ms
79,828 KB
testcase_20 AC 248 ms
80,472 KB
testcase_21 AC 191 ms
79,768 KB
testcase_22 AC 89 ms
76,992 KB
testcase_23 AC 90 ms
76,912 KB
testcase_24 AC 98 ms
76,844 KB
testcase_25 AC 87 ms
76,788 KB
testcase_26 AC 92 ms
76,940 KB
testcase_27 AC 89 ms
76,916 KB
testcase_28 AC 98 ms
77,172 KB
testcase_29 AC 88 ms
76,776 KB
testcase_30 AC 96 ms
77,360 KB
testcase_31 AC 80 ms
76,520 KB
testcase_32 AC 93 ms
76,880 KB
testcase_33 AC 95 ms
76,700 KB
testcase_34 AC 96 ms
77,080 KB
testcase_35 AC 560 ms
81,012 KB
testcase_36 AC 562 ms
81,844 KB
testcase_37 AC 304 ms
81,424 KB
testcase_38 AC 516 ms
81,088 KB
testcase_39 AC 80 ms
76,116 KB
testcase_40 AC 81 ms
76,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N=int(input())
ANS=0

LIST=[[[] for j in range(100)] for i in range(100)]

for i in range(N):
    x,y=map(int,input().split())

    k=x//250
    l=y//250

    flag=1

    for s in [k,k-1,k+1]:
        for t in [l,l-1,l+1]:
            if 0<=s<100 and 0<=t<100:
                for z,w in LIST[s][t]:
                    if (x-z)**2+(y-w)**2<400:
                        flag=0

    if flag==1:
        ANS+=1
        LIST[k][l].append((x,y))

print(ANS)
    
                    
0