結果

問題 No.202 1円玉投げ
ユーザー rlangevinrlangevin
提出日時 2023-10-25 12:22:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 4,169 ms / 5,000 ms
コード長 420 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 82,276 KB
最終ジャッジ日時 2023-12-22 21:31:51
合計ジャッジ時間 53,425 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,924 ms
80,144 KB
testcase_01 AC 3,955 ms
82,276 KB
testcase_02 AC 49 ms
62,352 KB
testcase_03 AC 48 ms
62,352 KB
testcase_04 AC 49 ms
62,352 KB
testcase_05 AC 196 ms
75,012 KB
testcase_06 AC 3,319 ms
81,924 KB
testcase_07 AC 3,825 ms
81,924 KB
testcase_08 AC 3,821 ms
81,924 KB
testcase_09 AC 1,879 ms
81,028 KB
testcase_10 AC 689 ms
81,028 KB
testcase_11 AC 1,481 ms
81,028 KB
testcase_12 AC 1,543 ms
81,028 KB
testcase_13 AC 779 ms
81,028 KB
testcase_14 AC 221 ms
75,012 KB
testcase_15 AC 1,793 ms
81,028 KB
testcase_16 AC 1,906 ms
80,400 KB
testcase_17 AC 2,121 ms
79,880 KB
testcase_18 AC 2,126 ms
79,880 KB
testcase_19 AC 1,665 ms
81,028 KB
testcase_20 AC 2,934 ms
81,924 KB
testcase_21 AC 1,674 ms
81,028 KB
testcase_22 AC 74 ms
68,712 KB
testcase_23 AC 79 ms
70,788 KB
testcase_24 AC 60 ms
66,788 KB
testcase_25 AC 72 ms
66,788 KB
testcase_26 AC 69 ms
64,580 KB
testcase_27 AC 71 ms
64,588 KB
testcase_28 AC 64 ms
64,584 KB
testcase_29 AC 64 ms
64,588 KB
testcase_30 AC 82 ms
70,456 KB
testcase_31 AC 63 ms
64,588 KB
testcase_32 AC 80 ms
70,136 KB
testcase_33 AC 77 ms
66,780 KB
testcase_34 AC 87 ms
66,788 KB
testcase_35 AC 1,919 ms
80,008 KB
testcase_36 AC 2,111 ms
81,308 KB
testcase_37 AC 4,169 ms
81,924 KB
testcase_38 AC 1,818 ms
80,008 KB
testcase_39 AC 62 ms
66,768 KB
testcase_40 AC 57 ms
66,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N = int(input())
XY = []
for x in range(-20, 21):
    for y in range(-20, 21):
        if x ** 2 + y ** 2 < 400:
            XY.append((x, y))

D = defaultdict(set)
ans = 0
for i in range(N):
    X, Y = map(int, input().split())
    for x, y in XY:
        if Y + y in D[X + x]:
            break
    else:
        D[X].add(Y)
        ans += 1

print(ans)
0