結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-01-11 14:33:03 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 5,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,800 KB |
| 最終ジャッジ日時 | 2024-06-13 03:43:52 |
| 合計ジャッジ時間 | 853 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - str Syntax OK
ソースコード
class A
def initialize
t = gets.chomp.to_i
t.times do
str = gets.chomp
eps = 1.0e-6
6.times do
x, y = gets.chomp.split(' ').map(&:to_f)
arc = Math.atan(y/x) * 180 / Math::PI
if x >= -eps && y >= -eps && arc.between?(0-eps,50+eps)
puts arc
end
end
end
end
end
A.new
siman