結果

問題 No.136 Yet Another GCD Problem
ユーザー tanimani364tanimani364
提出日時 2021-03-29 15:52:44
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 179 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 2,147 ms
コンパイル使用メモリ 86,644 KB
実行使用メモリ 81,056 KB
最終ジャッジ日時 2023-08-19 16:16:11
合計ジャッジ時間 9,895 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 177 ms
80,884 KB
testcase_01 AC 177 ms
80,880 KB
testcase_02 AC 174 ms
80,928 KB
testcase_03 AC 175 ms
80,976 KB
testcase_04 AC 174 ms
80,776 KB
testcase_05 AC 172 ms
80,688 KB
testcase_06 AC 172 ms
80,696 KB
testcase_07 AC 176 ms
80,856 KB
testcase_08 AC 171 ms
80,928 KB
testcase_09 AC 172 ms
80,836 KB
testcase_10 AC 175 ms
80,476 KB
testcase_11 AC 178 ms
80,780 KB
testcase_12 AC 176 ms
80,924 KB
testcase_13 AC 174 ms
80,824 KB
testcase_14 AC 172 ms
80,796 KB
testcase_15 AC 175 ms
80,732 KB
testcase_16 AC 175 ms
80,784 KB
testcase_17 AC 178 ms
80,824 KB
testcase_18 AC 176 ms
80,580 KB
testcase_19 AC 175 ms
80,608 KB
testcase_20 AC 175 ms
80,596 KB
testcase_21 AC 175 ms
80,628 KB
testcase_22 AC 175 ms
80,596 KB
testcase_23 AC 176 ms
80,920 KB
testcase_24 AC 176 ms
81,056 KB
testcase_25 AC 174 ms
80,628 KB
testcase_26 AC 175 ms
80,496 KB
testcase_27 AC 176 ms
80,880 KB
testcase_28 AC 176 ms
80,876 KB
testcase_29 AC 175 ms
80,772 KB
testcase_30 AC 173 ms
80,800 KB
testcase_31 AC 176 ms
80,660 KB
testcase_32 AC 175 ms
80,872 KB
testcase_33 AC 174 ms
80,592 KB
testcase_34 AC 172 ms
80,856 KB
testcase_35 AC 173 ms
80,800 KB
testcase_36 AC 171 ms
80,852 KB
testcase_37 AC 176 ms
80,504 KB
testcase_38 AC 177 ms
80,832 KB
testcase_39 AC 175 ms
80,828 KB
testcase_40 AC 174 ms
80,880 KB
testcase_41 AC 179 ms
80,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
#coding:utf-8

import math
import string
import random
from sys import stdin
# import numpy as np
# from matplotlib import pyplot as plt
	

def main():
	read=stdin.readline

	#edit here!
	n,k=map(int,read().split())
	i=1
	v=[]
	ans=1
	while i*i<=n :
		if n%i==0:
			if i<=n//2:
				v.append(i)
			if n//i<=n//2 and i*i!=n:
				v.append(n//i)
		i+=1
	v.sort()
	print(v[-1])



if __name__ == '__main__':
	main()
0