結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
m0ch1m0ch1
|
| 提出日時 | 2020-09-29 15:28:07 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 314 bytes |
| コンパイル時間 | 11,682 ms |
| コンパイル使用メモリ | 241,808 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-03 23:02:16 |
| 合計ジャッジ時間 | 12,015 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
package main
import (
"fmt"
"math"
)
func gcd(A int, B int) int {
if B == 0 {
return A
}
return gcd(B, A%B)
}
func main() {
var A, B int
fmt.Scan(&A, &B)
var c float64
c = float64(gcd(A, B))
if math.Sqrt(c) == math.Floor(math.Sqrt(c)) {
fmt.Println("Odd")
} else {
fmt.Println("Even")
}
}
m0ch1m0ch1