結果

問題 No.202 1円玉投げ
ユーザー pluto77pluto77
提出日時 2019-11-19 10:20:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,174 ms / 5,000 ms
コード長 356 bytes
コンパイル時間 745 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-08-24 00:05:42
合計ジャッジ時間 22,470 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,153 ms
54,868 KB
testcase_01 AC 848 ms
57,856 KB
testcase_02 AC 122 ms
37,892 KB
testcase_03 AC 118 ms
37,888 KB
testcase_04 AC 121 ms
37,744 KB
testcase_05 AC 163 ms
39,140 KB
testcase_06 AC 790 ms
53,112 KB
testcase_07 AC 862 ms
54,280 KB
testcase_08 AC 868 ms
54,696 KB
testcase_09 AC 520 ms
47,680 KB
testcase_10 AC 303 ms
41,996 KB
testcase_11 AC 462 ms
45,964 KB
testcase_12 AC 466 ms
46,396 KB
testcase_13 AC 316 ms
42,424 KB
testcase_14 AC 189 ms
39,200 KB
testcase_15 AC 511 ms
47,256 KB
testcase_16 AC 989 ms
54,960 KB
testcase_17 AC 1,007 ms
54,960 KB
testcase_18 AC 1,019 ms
55,100 KB
testcase_19 AC 488 ms
46,788 KB
testcase_20 AC 726 ms
51,356 KB
testcase_21 AC 501 ms
46,788 KB
testcase_22 AC 128 ms
37,832 KB
testcase_23 AC 143 ms
37,700 KB
testcase_24 AC 132 ms
37,848 KB
testcase_25 AC 132 ms
37,880 KB
testcase_26 AC 132 ms
37,844 KB
testcase_27 AC 130 ms
37,744 KB
testcase_28 AC 124 ms
37,700 KB
testcase_29 AC 123 ms
37,700 KB
testcase_30 AC 132 ms
37,768 KB
testcase_31 AC 125 ms
37,692 KB
testcase_32 AC 127 ms
38,176 KB
testcase_33 AC 128 ms
37,700 KB
testcase_34 AC 132 ms
37,888 KB
testcase_35 AC 1,135 ms
54,548 KB
testcase_36 AC 1,174 ms
54,836 KB
testcase_37 AC 927 ms
55,760 KB
testcase_38 AC 1,137 ms
54,716 KB
testcase_39 AC 122 ms
37,776 KB
testcase_40 AC 122 ms
37,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki202

n=int(raw_input())
l=[[[] for i in range(600)] for j in range(600)]
res=0
for i in range(n):
 x,y=map(int,raw_input().split())
 ax,ay=(x/40)+1,(y/40)+1
 f=True
 for dx in (-1,0,1):
  for dy in (-1,0,1):
   for bx,by in l[ax+dx][ay+dy]:
    if (bx-x)**2+(by-y)**2<400:
      f=False
      break
 if f:
  res+=1
  l[ax][ay].append((x,y))
print res
0