結果
問題 | No.202 1円玉投げ |
ユーザー | ayaoni |
提出日時 | 2021-08-30 21:56:00 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,093 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 86,948 KB |
実行使用メモリ | 109,324 KB |
最終ジャッジ日時 | 2023-08-24 00:22:30 |
合計ジャッジ時間 | 9,575 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | AC | 96 ms
89,392 KB |
testcase_03 | AC | 94 ms
89,396 KB |
testcase_04 | AC | 96 ms
89,276 KB |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | AC | 124 ms
91,168 KB |
testcase_15 | RE | - |
testcase_16 | AC | 207 ms
109,324 KB |
testcase_17 | AC | 209 ms
107,516 KB |
testcase_18 | AC | 214 ms
107,684 KB |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | AC | 111 ms
90,916 KB |
testcase_23 | RE | - |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | AC | 113 ms
91,088 KB |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | RE | - |
testcase_30 | RE | - |
testcase_31 | AC | 104 ms
90,804 KB |
testcase_32 | AC | 112 ms
91,080 KB |
testcase_33 | RE | - |
testcase_34 | AC | 120 ms
91,220 KB |
testcase_35 | AC | 215 ms
108,536 KB |
testcase_36 | RE | - |
testcase_37 | RE | - |
testcase_38 | AC | 217 ms
107,852 KB |
testcase_39 | AC | 103 ms
90,864 KB |
testcase_40 | AC | 101 ms
89,860 KB |
ソースコード
import sys def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LI2(): return list(map(int,sys.stdin.readline().rstrip())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) def LS2(): return list(sys.stdin.readline().rstrip()) N = I() area = [[[] for _ in range(800)] for _ in range(800)] XY = [] R = [-1,0,1] ans = 0 for k in range(N): x,y = MI() XY.append((x,y)) i = x//25 j = y//25 is_eliminated = 0 for di in R: ni = i+di if not (0 <= ni < 800): continue for dj in R: nj = j+dj if not (0 <= nj < 800): continue for l in area[ni][nj]: xl,yl = XY[l] if (x-xl)**2+(y-yl)**2 < 400: is_eliminated = 1 break if is_eliminated: continue else: area[i][j].append(k) ans += 1 print(ans)