結果

問題 No.136 Yet Another GCD Problem
ユーザー kohei2019kohei2019
提出日時 2021-08-02 22:56:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 756 ms
コンパイル使用メモリ 86,792 KB
実行使用メモリ 76,096 KB
最終ジャッジ日時 2023-10-14 20:59:21
合計ジャッジ時間 5,745 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,072 KB
testcase_01 AC 73 ms
71,032 KB
testcase_02 AC 72 ms
71,156 KB
testcase_03 AC 96 ms
75,804 KB
testcase_04 AC 89 ms
75,996 KB
testcase_05 AC 78 ms
75,872 KB
testcase_06 AC 76 ms
76,020 KB
testcase_07 AC 76 ms
75,988 KB
testcase_08 AC 82 ms
75,988 KB
testcase_09 AC 76 ms
75,596 KB
testcase_10 AC 82 ms
75,912 KB
testcase_11 AC 85 ms
75,808 KB
testcase_12 AC 79 ms
71,508 KB
testcase_13 AC 82 ms
75,884 KB
testcase_14 AC 89 ms
75,872 KB
testcase_15 AC 89 ms
75,816 KB
testcase_16 AC 87 ms
75,916 KB
testcase_17 AC 84 ms
76,096 KB
testcase_18 AC 74 ms
70,856 KB
testcase_19 AC 85 ms
75,836 KB
testcase_20 AC 81 ms
76,056 KB
testcase_21 AC 75 ms
75,900 KB
testcase_22 AC 71 ms
71,180 KB
testcase_23 AC 70 ms
71,208 KB
testcase_24 AC 71 ms
71,184 KB
testcase_25 AC 71 ms
71,556 KB
testcase_26 AC 72 ms
71,376 KB
testcase_27 AC 86 ms
76,096 KB
testcase_28 AC 82 ms
75,740 KB
testcase_29 AC 75 ms
75,828 KB
testcase_30 AC 70 ms
71,076 KB
testcase_31 AC 70 ms
71,476 KB
testcase_32 AC 69 ms
71,160 KB
testcase_33 AC 71 ms
71,276 KB
testcase_34 AC 79 ms
75,872 KB
testcase_35 AC 82 ms
75,980 KB
testcase_36 AC 77 ms
75,728 KB
testcase_37 AC 87 ms
75,916 KB
testcase_38 AC 70 ms
71,184 KB
testcase_39 AC 71 ms
71,208 KB
testcase_40 AC 70 ms
71,120 KB
testcase_41 AC 71 ms
71,508 KB
権限があれば一括ダウンロードができます

ソースコード

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