結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-01-11 14:29:10 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-07-26 10:05:00 |
| 合計ジャッジ時間 | 1,131 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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
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
siman