結果
| 問題 | No.1063 ルートの計算 / Sqrt Calculation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-29 21:42:34 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 27 ms / 2,000 ms |
| + 967µs | |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2026-10-12 07:40:51 |
| 合計ジャッジ時間 | 1,653 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
from sys import stdin
def main():
input = lambda: stdin.readline()[:-1]
N = int(input())
ans = [float('inf'), float('inf')]
for a in range(1, int(N ** 0.5) + 1):
for _ in [0] * 2:
if not N % (a * a):
b = N // (a * a)
if b < ans[1]:
ans = [a, b]
a = b
print(*ans)
main()