結果

問題 No.136 Yet Another GCD Problem
ユーザー ktshunktshun
提出日時 2015-06-11 12:56:01
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 173 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-06 15:35:11
合計ジャッジ時間 1,900 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-

if __name__ == "__main__":
	n,k = map(int,raw_input().split())
	ans = 1
	for i in xrange(2,n+1):
		if n % i == 0:
			ans = n / i
			break
	print ans
0