結果

問題 No.105 arcの六角ボルト
ユーザー simansiman
提出日時 2015-01-11 14:29:10
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 11,516 KB
実行使用メモリ 16,112 KB
最終ジャッジ日時 2023-09-03 23:08:20
合計ジャッジ時間 968 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - str
Syntax OK

ソースコード

diff #

class A
  def initialize
    t = gets.chomp.to_i

    t.times do
      str = gets.chomp

      6.times do
        x, y = gets.chomp.split(' ').map(&:to_f)
        arc = Math.atan(y/x) * 180 / Math::PI

        if x > 0 && y > 0 && arc.between?(0,50)
          puts arc
        end
      end
    end
  end
end

A.new
0