結果
問題 | No.1236 長針と短針 |
ユーザー |
![]() |
提出日時 | 2020-09-25 22:32:36 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 12,980 ms |
コンパイル使用メモリ | 232,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 06:59:20 |
合計ジャッジ時間 | 13,838 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
package main import "fmt" func main() { var A, B float64 fmt.Scan(&A, &B) x := float64(30*(int(A)%12)) + B/2 y := 6 * B if int(x)%360 == int(y)%360 { fmt.Println("0") } else { if x < y { x += 360 } ans := 60 * (2*x - 2*y) / 11 fmt.Println(int(ans)) } }