結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-01-19 15:40:24 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 1,213 ms / 5,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 12,269 ms |
| コンパイル使用メモリ | 223,144 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-10 02:56:28 |
| 合計ジャッジ時間 | 14,829 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
package main
import (
"fmt"
"math"
)
func solve() {
for i := 0; i < 6; i++ {
var x, y float64
fmt.Scan(&x, &y)
atan := math.Atan2(y+float64(1e-12), x)
if float64(0) <= atan && atan <= float64(50.0/360.0*math.Pi*2) {
fmt.Printf("%.8f\n", atan/(2*math.Pi)*360)
}
}
}
func main() {
var t int
fmt.Scan(&t)
for i := 0; i < t; i++ {
solve()
}
}
tnoda_