結果

問題 No.414 衝動
ユーザー mkawa2mkawa2
提出日時 2020-07-09 17:56:37
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 246 ms / 1,000 ms
コード長 172 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 10,488 KB
実行使用メモリ 8,164 KB
最終ジャッジ日時 2023-08-09 13:45:27
合計ジャッジ時間 2,539 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,876 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 15 ms
7,880 KB
testcase_03 AC 246 ms
7,840 KB
testcase_04 AC 15 ms
7,936 KB
testcase_05 AC 246 ms
7,924 KB
testcase_06 AC 245 ms
7,872 KB
testcase_07 AC 15 ms
8,164 KB
testcase_08 AC 146 ms
7,904 KB
testcase_09 AC 245 ms
7,808 KB
testcase_10 AC 15 ms
7,796 KB
testcase_11 AC 18 ms
7,752 KB
testcase_12 AC 15 ms
7,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m=int(input())
if m==1:
    print(1,1)
    exit()
for d in range(2,m+1):
    if d**2>m:
        print(1,m)
        break
    if m%d==0:
        print(d,m//d)
        break
0