結果
問題 | No.1063 ルートの計算 / Sqrt Calculation |
ユーザー | 67oYG9nh2YMmIci |
提出日時 | 2020-07-14 13:43:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,568 KB |
最終ジャッジ日時 | 2024-04-28 16:12:26 |
合計ジャッジ時間 | 3,918 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
17,568 KB |
testcase_01 | AC | 29 ms
10,624 KB |
testcase_02 | AC | 30 ms
10,752 KB |
testcase_03 | AC | 28 ms
10,624 KB |
testcase_04 | AC | 33 ms
10,752 KB |
testcase_05 | AC | 29 ms
10,624 KB |
testcase_06 | AC | 33 ms
10,752 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
def sqrt_cal(): b=int(input()) a=1 i=1 while True: if b == 1: break i+=1 if b%(i**2)==0: a*=i b=b/(i**2) i=1 if i==b: break print(a,int(b)) if __name__ == "__main__": sqrt_cal()