結果

問題 No.105 arcの六角ボルト
ユーザー 小指が強い人小指が強い人
提出日時 2015-12-05 19:14:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 168 ms / 5,000 ms
コード長 222 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2023-10-12 15:47:18
合計ジャッジ時間 885 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 168 ms
16,000 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t = gets.to_i

t.times do
    gets
    6.times do
        x, y = gets.split.map(&:to_f)
        deg = Math.atan2(y, x) * 180.0 / Math::PI
        if deg >= -0.01 && deg <= 50.01
            puts deg
        end
    end
end
0