結果
問題 | No.1063 ルートの計算 / Sqrt Calculation |
ユーザー | StarMatyan |
提出日時 | 2020-11-24 20:59:23 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 10,680 KB |
実行使用メモリ | 8,048 KB |
最終ジャッジ日時 | 2023-10-01 01:12:20 |
合計ジャッジ時間 | 1,630 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,968 KB |
testcase_01 | AC | 17 ms
8,048 KB |
testcase_02 | AC | 17 ms
7,932 KB |
testcase_03 | AC | 19 ms
7,884 KB |
testcase_04 | AC | 16 ms
7,848 KB |
testcase_05 | AC | 25 ms
7,880 KB |
testcase_06 | AC | 17 ms
7,888 KB |
testcase_07 | AC | 30 ms
8,048 KB |
testcase_08 | AC | 22 ms
8,048 KB |
testcase_09 | AC | 22 ms
7,924 KB |
testcase_10 | AC | 27 ms
7,928 KB |
testcase_11 | AC | 23 ms
7,884 KB |
testcase_12 | AC | 28 ms
8,040 KB |
testcase_13 | AC | 25 ms
7,928 KB |
testcase_14 | AC | 24 ms
7,992 KB |
testcase_15 | AC | 17 ms
7,884 KB |
testcase_16 | AC | 25 ms
7,916 KB |
ソースコード
import math int_first = int(input()) numer = int(math.sqrt(int_first)+1) while numer > 0: numer_double = int(numer*numer) if int_first%numer_double==0: sho = int(int_first/numer_double) result = str(int(numer))+" "+str(sho) break numer = numer -1 print(result)