結果
問題 | No.414 衝動 |
ユーザー | StarMatyan |
提出日時 | 2020-10-22 17:57:48 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 10,568 KB |
実行使用メモリ | 8,044 KB |
最終ジャッジ日時 | 2023-09-28 14:44:28 |
合計ジャッジ時間 | 3,325 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 246 ms
7,920 KB |
testcase_06 | AC | 244 ms
7,912 KB |
testcase_07 | AC | 16 ms
7,932 KB |
testcase_08 | AC | 146 ms
8,044 KB |
testcase_09 | WA | - |
testcase_10 | AC | 17 ms
7,960 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
ソースコード
import math first_num =int(input()) max_range =int(math.sqrt(first_num)) dist=0 result="" while max_range > 0 and dist <1: if first_num%max_range==0: if max_range > 1: dist = dist+1 result =str(first_num/max_range)+" "+str(max_range) else: result ="1 "+str(first_num) dist = dist+1 max_range = max_range-1 print(result)