結果
問題 | No.202 1円玉投げ |
ユーザー |
![]() |
提出日時 | 2025-05-12 19:33:58 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 503 ms |
コンパイル使用メモリ | 82,552 KB |
実行使用メモリ | 108,736 KB |
最終ジャッジ日時 | 2025-05-12 19:34:13 |
合計ジャッジ時間 | 14,384 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 37 |
ソースコード
placed = set() X = [19,19,19,19,19,19,19,18,18,17,17,16,15,15,14,13,11,10,8,6] for _ in range(int(input())): x,y = map(int,input().split()) f = False for dx in range(-19,20): i = abs(dx) for dy in range(-X[i],X[i]+1): if (x+dx,y+dy) in placed: f = True break if f: break else: placed.add((x,y)) print(len(placed))