結果
| 問題 | No.202 1円玉投げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-04 00:11:01 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 403 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 23,328 KB |
| 最終ジャッジ日時 | 2026-05-28 15:22:08 |
| 合計ジャッジ時間 | 13,019 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 37 |
コンパイルメッセージ
Syntax OK
ソースコード
class Ichien
attr_reader :point
def initialize(x, y)
@point = Complex(x, y)
end
def kasanaru(other)
(@point - other.point).abs < 20
end
end
n = gets.to_i
list = []
n.times do
ichi = Ichien.new(*gets.split.map(&:to_f))
okeru = true
list.each do |oita|
if ichi.kasanaru(oita)
okeru = false
break
end
end
if okeru
list << ichi
end
end
puts list.size