結果
問題 |
No.1157 Many Quotients easy
|
ユーザー |
![]() |
提出日時 | 2024-12-23 17:30:51 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 12,065 ms |
コンパイル使用メモリ | 234,228 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-23 17:31:08 |
合計ジャッジ時間 | 13,004 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 9 |
ソースコード
package main import . "fmt" import . "math/big" func main() { n:=new(Int) Scan(n) x:=new(Int).Sqrt(n) if n.Cmp(new(Int).Mul(x, x))==0 { Println(x.Add(x,x).Sub(x,NewInt(1))) } else { Println(x.Add(x,x)) } }