結果

問題 No.136 Yet Another GCD Problem
ユーザー ああいい
提出日時 2021-12-29 19:42:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-04 08:45:50
合計ジャッジ時間 2,513 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

import sys
for i in range(2,N + 1):
    if N % i == 0:
        if i == N:
            print(1)
            exit()
        else:
            print(N // i)
            exit()
0