結果

問題 No.136 Yet Another GCD Problem
ユーザー Snark86Snark86
提出日時 2016-04-27 06:43:04
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 7,168 KB
実行使用メモリ 10,672 KB
最終ジャッジ日時 2024-04-15 04:35:12
合計ジャッジ時間 2,997 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 11 ms
6,944 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 53 ms
7,976 KB
testcase_14 AC 140 ms
10,672 KB
testcase_15 WA -
testcase_16 AC 110 ms
9,832 KB
testcase_17 WA -
testcase_18 AC 12 ms
6,940 KB
testcase_19 AC 97 ms
9,496 KB
testcase_20 AC 69 ms
8,740 KB
testcase_21 AC 15 ms
6,940 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 11 ms
6,944 KB
testcase_27 AC 96 ms
9,492 KB
testcase_28 AC 68 ms
8,740 KB
testcase_29 AC 14 ms
6,944 KB
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n,k = map(int,raw_input().split())

a = [i for i in range(2,n+1)]
p = []
while a:
	if a[0] < math.sqrt(a[-1]):
		p.append(a[0])
		a = filter(lambda x:x%a[0]!=0, a)
	else:
		p += a
		break

if n not in p:
	for i in p:
		if n%i == 0:
			s = n/i
			b = [i,s]
			break
print (b[0]*b[1])/2
0