結果

問題 No.202 1円玉投げ
ユーザー nebukuro09
提出日時 2016-10-04 13:19:06
言語 PyPy2
(7.3.15)
結果
MLE  
実行時間 -
コード長 286 bytes
コンパイル時間 1,761 ms
コンパイル使用メモリ 76,736 KB
実行使用メモリ 1,657,728 KB
最終ジャッジ日時 2024-12-22 10:37:17
合計ジャッジ時間 125,389 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 MLE * 2
other AC * 15 TLE * 6 MLE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
s = set()
ans = 0
shuuhen = [(i, j) for i in xrange(-20, 21) for j in xrange(-20, 21) if i*i+j*j<400]
for i in xrange(N):
    x, y = map(int, raw_input().split())
    if (x, y) in s:
        continue
    for j, k in shuuhen:
        s.add((x+j, y+k))
    ans += 1
print ans
0