結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2020-09-16 22:50:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 59,152 KB |
最終ジャッジ日時 | 2024-11-15 12:37:50 |
合計ジャッジ時間 | 3,610 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
def div(n):lower_divisors , upper_divisors = [], []i = 1while i*i <= n:if n % i == 0:lower_divisors.append(i)if i != n // i:upper_divisors.append(n//i)i += 1return lower_divisors + upper_divisors[::-1]n = int(input())L = div(n)for x in L:if not(0 <= x <= 2):ans = xbreakprint(ans)