結果
| 問題 | No.136 Yet Another GCD Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-21 13:30:07 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| + 805µs | |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 96,452 KB |
| 実行使用メモリ | 83,740 KB |
| 最終ジャッジ日時 | 2026-08-30 22:22:46 |
| 合計ジャッジ時間 | 4,896 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 39 |
ソースコード
# Python3勉強中
import math
n,k = list(map(int,input().split()))
r = 0
for x in range(1,int(n/2)+1):
y = n - x
r = max(r,math.gcd(x,y))
print(r)