結果
問題 |
No.202 1円玉投げ
|
ユーザー |
|
提出日時 | 2015-05-04 00:11:01 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 27,072 KB |
最終ジャッジ日時 | 2024-12-22 06:52:53 |
合計ジャッジ時間 | 149,002 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 TLE * 23 |
コンパイルメッセージ
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