結果

問題 No.136 Yet Another GCD Problem
ユーザー kohei2019
提出日時 2021-08-02 22:56:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 58,752 KB
最終ジャッジ日時 2024-09-16 14:48:31
合計ジャッジ時間 3,747 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 1
for i in range(2,N):
    a = i
    b = N-i
    ans = max(ans,math.gcd(a,b))
print(ans)
0