結果

問題 No.202 1円玉投げ
ユーザー ああいいああいい
提出日時 2022-03-17 23:36:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 354 ms / 5,000 ms
コード長 400 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 94,352 KB
最終ジャッジ日時 2023-08-24 00:24:19
合計ジャッジ時間 9,932 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 352 ms
94,028 KB
testcase_01 AC 337 ms
94,352 KB
testcase_02 AC 68 ms
71,328 KB
testcase_03 AC 68 ms
71,360 KB
testcase_04 AC 67 ms
71,248 KB
testcase_05 AC 114 ms
78,284 KB
testcase_06 AC 287 ms
91,080 KB
testcase_07 AC 333 ms
91,356 KB
testcase_08 AC 332 ms
93,904 KB
testcase_09 AC 230 ms
87,220 KB
testcase_10 AC 174 ms
81,384 KB
testcase_11 AC 207 ms
85,316 KB
testcase_12 AC 216 ms
85,308 KB
testcase_13 AC 157 ms
81,648 KB
testcase_14 AC 116 ms
78,816 KB
testcase_15 AC 230 ms
87,084 KB
testcase_16 AC 292 ms
93,944 KB
testcase_17 AC 297 ms
94,000 KB
testcase_18 AC 297 ms
93,744 KB
testcase_19 AC 228 ms
84,604 KB
testcase_20 AC 279 ms
90,456 KB
testcase_21 AC 211 ms
84,808 KB
testcase_22 AC 82 ms
77,208 KB
testcase_23 AC 83 ms
77,036 KB
testcase_24 AC 92 ms
77,104 KB
testcase_25 AC 91 ms
77,104 KB
testcase_26 AC 83 ms
77,100 KB
testcase_27 AC 84 ms
77,060 KB
testcase_28 AC 95 ms
77,144 KB
testcase_29 AC 92 ms
77,052 KB
testcase_30 AC 84 ms
76,744 KB
testcase_31 AC 84 ms
77,052 KB
testcase_32 AC 97 ms
77,192 KB
testcase_33 AC 100 ms
77,460 KB
testcase_34 AC 86 ms
76,744 KB
testcase_35 AC 329 ms
93,424 KB
testcase_36 AC 354 ms
93,952 KB
testcase_37 AC 342 ms
93,068 KB
testcase_38 AC 325 ms
93,804 KB
testcase_39 AC 74 ms
76,608 KB
testcase_40 AC 75 ms
76,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

d = dict()
for _ in range(N):
    x,y = map(int,input().split())
    s = x // 10
    t = y // 10
    flag = True
    for i in range(-2,3):
        for j in range(-2,3):
            if (s+i,t+j) in d:
                u,v = d[(s+i,t+j)]
                if (u-x) ** 2 + (v - y) ** 2 < 400:
                    flag = False
    if flag:
        d[(s,t)] = (x,y)
print(len(d))
#print(d)
0