結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2019-03-13 15:19:23 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 10,881 ms |
コンパイル使用メモリ | 239,648 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 16:00:15 |
合計ジャッジ時間 | 13,245 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 28 |
ソースコード
package main import ( "fmt" "math" ) func main() { var x int _, _ = fmt.Scan(&x) for y := 1; y <= x; y++ { z := math.Sqrt(float64(x * y)) // fmt.Println(x, y, z) if math.Ceil(z) == math.Floor(z) { fmt.Println(y) break } } }