結果

問題 No.136 Yet Another GCD Problem
コンテスト
ユーザー tanimani364
提出日時 2021-03-29 15:13:20
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 385 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 171 ms
コンパイル使用メモリ 85,504 KB
実行使用メモリ 65,536 KB
最終ジャッジ日時 2026-05-23 06:04:06
合計ジャッジ時間 3,667 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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