結果
| 問題 | No.136 Yet Another GCD Problem |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2021-03-14 21:51:24 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 27 ms / 5,000 ms |
| + 782µs | |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-19 15:55:01 |
| 合計ジャッジ時間 | 2,875 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 39 |
ソースコード
N, K = map(int, input().split())
result = 1
for i in range(1, N + 1):
if N % i != 0:
continue
if N // i < 2:
continue
result = max(result, i)
print(result)
c-yan