結果

問題 No.136 Yet Another GCD Problem
ユーザー tanimani364tanimani364
提出日時 2021-03-29 15:13:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 81,252 KB
最終ジャッジ日時 2023-08-19 16:12:05
合計ジャッジ時間 9,359 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
80,784 KB
testcase_01 AC 159 ms
80,824 KB
testcase_02 AC 159 ms
81,004 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 159 ms
80,944 KB
testcase_09 AC 159 ms
80,884 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 159 ms
80,592 KB
testcase_14 AC 157 ms
80,764 KB
testcase_15 WA -
testcase_16 AC 159 ms
80,940 KB
testcase_17 AC 158 ms
80,780 KB
testcase_18 AC 157 ms
80,880 KB
testcase_19 AC 156 ms
80,716 KB
testcase_20 AC 157 ms
80,868 KB
testcase_21 AC 160 ms
80,884 KB
testcase_22 AC 159 ms
80,852 KB
testcase_23 AC 157 ms
80,608 KB
testcase_24 AC 159 ms
80,984 KB
testcase_25 AC 161 ms
80,860 KB
testcase_26 AC 159 ms
80,600 KB
testcase_27 AC 160 ms
80,600 KB
testcase_28 AC 160 ms
80,600 KB
testcase_29 AC 159 ms
80,952 KB
testcase_30 AC 159 ms
80,816 KB
testcase_31 AC 159 ms
80,808 KB
testcase_32 AC 159 ms
81,004 KB
testcase_33 AC 158 ms
80,964 KB
testcase_34 AC 158 ms
80,804 KB
testcase_35 AC 157 ms
80,788 KB
testcase_36 AC 158 ms
80,872 KB
testcase_37 AC 160 ms
80,812 KB
testcase_38 AC 161 ms
80,756 KB
testcase_39 AC 158 ms
80,952 KB
testcase_40 AC 159 ms
80,852 KB
testcase_41 AC 158 ms
80,744 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=2
	ans=1
	while i*i<=n :
		if n%i==0:
			if ans<(i//2)*(n//i):
				ans=(i//2)*(n//i)
		i+=1
	print(ans)




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