結果

問題 No.202 1円玉投げ
ユーザー yaoshimaxyaoshimax
提出日時 2015-05-22 00:31:56
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 363 ms / 5,000 ms
コード長 446 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 77,784 KB
実行使用メモリ 97,484 KB
最終ジャッジ日時 2023-08-23 22:56:58
合計ジャッジ時間 9,759 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 241 ms
91,948 KB
testcase_01 AC 314 ms
97,484 KB
testcase_02 AC 84 ms
79,496 KB
testcase_03 AC 84 ms
79,492 KB
testcase_04 AC 85 ms
79,496 KB
testcase_05 AC 129 ms
88,508 KB
testcase_06 AC 316 ms
94,492 KB
testcase_07 AC 363 ms
96,252 KB
testcase_08 AC 347 ms
96,760 KB
testcase_09 AC 250 ms
92,648 KB
testcase_10 AC 196 ms
91,544 KB
testcase_11 AC 219 ms
91,576 KB
testcase_12 AC 225 ms
91,600 KB
testcase_13 AC 178 ms
89,428 KB
testcase_14 AC 136 ms
88,252 KB
testcase_15 AC 257 ms
93,244 KB
testcase_16 AC 243 ms
92,808 KB
testcase_17 AC 240 ms
93,052 KB
testcase_18 AC 236 ms
93,028 KB
testcase_19 AC 226 ms
91,552 KB
testcase_20 AC 327 ms
95,504 KB
testcase_21 AC 244 ms
93,892 KB
testcase_22 AC 111 ms
80,388 KB
testcase_23 AC 112 ms
80,408 KB
testcase_24 AC 106 ms
80,392 KB
testcase_25 AC 106 ms
80,572 KB
testcase_26 AC 127 ms
88,872 KB
testcase_27 AC 125 ms
88,704 KB
testcase_28 AC 105 ms
80,384 KB
testcase_29 AC 110 ms
80,436 KB
testcase_30 AC 127 ms
89,124 KB
testcase_31 AC 100 ms
80,340 KB
testcase_32 AC 113 ms
80,416 KB
testcase_33 AC 126 ms
88,168 KB
testcase_34 AC 129 ms
88,808 KB
testcase_35 AC 232 ms
92,284 KB
testcase_36 AC 281 ms
93,016 KB
testcase_37 AC 353 ms
95,420 KB
testcase_38 AC 227 ms
92,300 KB
testcase_39 AC 90 ms
79,524 KB
testcase_40 AC 90 ms
79,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
segs=[[[] for i in range(510)] for j in range(510)]

ans=0
for i in range(N):
    x,y=map(int,raw_input().split())
    xi,yj=(x/40)+1,(y/40+1)
    ok=True
    for dx in (-1,0,1):
        for dy in (-1,0,1):
            for (p,q) in segs[xi+dx][yj+dy]:
                if (p-x)*(p-x)+(q-y)*(q-y)<400:
                    ok=False
                    break
    if ok:
        ans+=1
        segs[xi][yj].append((x,y))
print ans

0