結果

問題 No.202 1円玉投げ
ユーザー 👑 rin204rin204
提出日時 2022-09-29 21:37:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,595 ms / 5,000 ms
コード長 432 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 84,820 KB
最終ジャッジ日時 2024-06-02 02:10:29
合計ジャッジ時間 45,014 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,425 ms
84,328 KB
testcase_01 AC 2,595 ms
84,212 KB
testcase_02 AC 40 ms
61,672 KB
testcase_03 AC 40 ms
61,256 KB
testcase_04 AC 40 ms
62,592 KB
testcase_05 AC 202 ms
76,632 KB
testcase_06 AC 2,148 ms
83,196 KB
testcase_07 AC 2,284 ms
82,592 KB
testcase_08 AC 2,325 ms
83,220 KB
testcase_09 AC 1,417 ms
80,560 KB
testcase_10 AC 600 ms
78,828 KB
testcase_11 AC 1,252 ms
81,056 KB
testcase_12 AC 1,299 ms
80,500 KB
testcase_13 AC 659 ms
78,860 KB
testcase_14 AC 242 ms
76,572 KB
testcase_15 AC 1,427 ms
80,456 KB
testcase_16 AC 2,159 ms
83,496 KB
testcase_17 AC 2,305 ms
83,752 KB
testcase_18 AC 2,346 ms
84,136 KB
testcase_19 AC 1,382 ms
80,652 KB
testcase_20 AC 1,863 ms
82,204 KB
testcase_21 AC 1,330 ms
80,492 KB
testcase_22 AC 67 ms
67,092 KB
testcase_23 AC 69 ms
65,944 KB
testcase_24 AC 52 ms
66,832 KB
testcase_25 AC 63 ms
65,884 KB
testcase_26 AC 69 ms
66,480 KB
testcase_27 AC 67 ms
67,108 KB
testcase_28 AC 57 ms
66,344 KB
testcase_29 AC 56 ms
66,408 KB
testcase_30 AC 68 ms
67,016 KB
testcase_31 AC 55 ms
66,284 KB
testcase_32 AC 83 ms
71,152 KB
testcase_33 AC 75 ms
72,200 KB
testcase_34 AC 69 ms
66,416 KB
testcase_35 AC 2,339 ms
83,756 KB
testcase_36 AC 2,392 ms
84,820 KB
testcase_37 AC 2,442 ms
83,732 KB
testcase_38 AC 2,214 ms
83,872 KB
testcase_39 AC 54 ms
66,356 KB
testcase_40 AC 47 ms
63,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D = []
for dx in range(-20, 21):
    for dy in range(-20, 21):
        dd = dx * dx + dy * dy
        if dd < 400:
            D.append((dx, dy))

def f(x, y):
    return x * 50000 + y

se = set()
n = int(input())
for _ in range(n):
    x, y = map(int, input().split())
    ok = True
    for dx, dy in D:
        if f(x + dx, y + dy) in se:
            ok = False
            break
    if ok:
        se.add(f(x, y))

print(len(se))
0