結果

問題 No.202 1円玉投げ
ユーザー 👑 rin204rin204
提出日時 2022-09-29 21:37:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,908 ms / 5,000 ms
コード長 432 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 86,848 KB
最終ジャッジ日時 2023-08-24 05:05:52
合計ジャッジ時間 49,694 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,660 ms
85,428 KB
testcase_01 AC 2,908 ms
85,552 KB
testcase_02 AC 81 ms
76,312 KB
testcase_03 AC 80 ms
76,348 KB
testcase_04 AC 79 ms
76,192 KB
testcase_05 AC 253 ms
77,496 KB
testcase_06 AC 2,356 ms
83,400 KB
testcase_07 AC 2,469 ms
84,388 KB
testcase_08 AC 2,478 ms
85,796 KB
testcase_09 AC 1,568 ms
82,124 KB
testcase_10 AC 658 ms
79,728 KB
testcase_11 AC 1,377 ms
81,516 KB
testcase_12 AC 1,361 ms
81,100 KB
testcase_13 AC 718 ms
80,068 KB
testcase_14 AC 282 ms
77,880 KB
testcase_15 AC 1,534 ms
82,152 KB
testcase_16 AC 2,349 ms
85,116 KB
testcase_17 AC 2,504 ms
85,300 KB
testcase_18 AC 2,499 ms
85,340 KB
testcase_19 AC 1,480 ms
82,232 KB
testcase_20 AC 2,063 ms
83,828 KB
testcase_21 AC 1,474 ms
81,256 KB
testcase_22 AC 108 ms
77,132 KB
testcase_23 AC 110 ms
76,692 KB
testcase_24 AC 93 ms
76,824 KB
testcase_25 AC 105 ms
77,076 KB
testcase_26 AC 109 ms
76,932 KB
testcase_27 AC 108 ms
77,136 KB
testcase_28 AC 97 ms
77,084 KB
testcase_29 AC 98 ms
76,864 KB
testcase_30 AC 112 ms
76,880 KB
testcase_31 AC 97 ms
76,876 KB
testcase_32 AC 126 ms
77,612 KB
testcase_33 AC 118 ms
76,964 KB
testcase_34 AC 112 ms
76,892 KB
testcase_35 AC 2,570 ms
85,288 KB
testcase_36 AC 2,429 ms
86,848 KB
testcase_37 AC 2,643 ms
85,700 KB
testcase_38 AC 2,509 ms
85,304 KB
testcase_39 AC 95 ms
76,688 KB
testcase_40 AC 88 ms
76,364 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