結果
問題 |
No.136 Yet Another GCD Problem
|
ユーザー |
![]() |
提出日時 | 2021-03-29 15:13:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 385 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 65,408 KB |
最終ジャッジ日時 | 2024-11-29 09:50:31 |
合計ジャッジ時間 | 4,872 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 WA * 9 |
ソースコード
#!/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()