結果
問題 |
No.202 1円玉投げ
|
ユーザー |
|
提出日時 | 2016-10-04 13:18:51 |
言語 | Python2 (2.7.18) |
結果 |
MLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 483 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 1,494,676 KB |
最終ジャッジ日時 | 2024-12-22 10:34:55 |
合計ジャッジ時間 | 135,872 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 MLE * 2 |
other | AC * 14 TLE * 6 MLE * 18 |
ソースコード
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