結果

問題 No.136 Yet Another GCD Problem
ユーザー tanimani364tanimani364
提出日時 2021-03-29 15:13:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 67,508 KB
最終ジャッジ日時 2024-05-06 23:13:06
合計ジャッジ時間 4,489 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
65,688 KB
testcase_01 AC 61 ms
65,964 KB
testcase_02 AC 63 ms
65,788 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 64 ms
65,928 KB
testcase_09 AC 68 ms
66,148 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 62 ms
66,492 KB
testcase_14 AC 60 ms
66,572 KB
testcase_15 WA -
testcase_16 AC 68 ms
65,912 KB
testcase_17 AC 63 ms
66,092 KB
testcase_18 AC 65 ms
66,132 KB
testcase_19 AC 63 ms
65,868 KB
testcase_20 AC 62 ms
65,880 KB
testcase_21 AC 62 ms
66,288 KB
testcase_22 AC 64 ms
65,656 KB
testcase_23 AC 64 ms
66,416 KB
testcase_24 AC 61 ms
65,688 KB
testcase_25 AC 65 ms
66,968 KB
testcase_26 AC 59 ms
65,332 KB
testcase_27 AC 59 ms
65,644 KB
testcase_28 AC 59 ms
66,164 KB
testcase_29 AC 61 ms
66,096 KB
testcase_30 AC 59 ms
66,236 KB
testcase_31 AC 62 ms
66,872 KB
testcase_32 AC 59 ms
65,460 KB
testcase_33 AC 60 ms
66,732 KB
testcase_34 AC 61 ms
66,512 KB
testcase_35 AC 60 ms
65,748 KB
testcase_36 AC 61 ms
66,088 KB
testcase_37 AC 62 ms
66,556 KB
testcase_38 AC 61 ms
66,352 KB
testcase_39 AC 62 ms
65,396 KB
testcase_40 AC 61 ms
66,100 KB
testcase_41 AC 60 ms
66,600 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