結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,816 KB
testcase_01 AC 10 ms
6,940 KB
testcase_02 AC 10 ms
6,944 KB
testcase_03 AC 79 ms
8,876 KB
testcase_04 AC 135 ms
10,492 KB
testcase_05 AC 31 ms
7,424 KB
testcase_06 AC 28 ms
7,296 KB
testcase_07 AC 32 ms
7,368 KB
testcase_08 AC 59 ms
8,288 KB
testcase_09 AC 14 ms
6,940 KB
testcase_10 AC 62 ms
8,440 KB
testcase_11 AC 98 ms
9,544 KB
testcase_12 AC 12 ms
6,940 KB
testcase_13 AC 51 ms
8,100 KB
testcase_14 AC 136 ms
10,672 KB
testcase_15 AC 125 ms
10,152 KB
testcase_16 AC 108 ms
9,832 KB
testcase_17 AC 88 ms
9,316 KB
testcase_18 AC 10 ms
6,940 KB
testcase_19 AC 96 ms
9,496 KB
testcase_20 AC 67 ms
8,740 KB
testcase_21 AC 14 ms
6,944 KB
testcase_22 WA -
testcase_23 AC 10 ms
6,944 KB
testcase_24 WA -
testcase_25 AC 10 ms
6,944 KB
testcase_26 AC 10 ms
6,940 KB
testcase_27 AC 96 ms
9,364 KB
testcase_28 AC 69 ms
8,744 KB
testcase_29 AC 14 ms
6,940 KB
testcase_30 WA -
testcase_31 AC 11 ms
6,940 KB
testcase_32 WA -
testcase_33 AC 10 ms
6,940 KB
testcase_34 AC 38 ms
7,552 KB
testcase_35 AC 63 ms
8,524 KB
testcase_36 AC 27 ms
7,168 KB
testcase_37 AC 116 ms
9,992 KB
testcase_38 AC 10 ms
6,940 KB
testcase_39 AC 10 ms
6,940 KB
testcase_40 AC 10 ms
6,944 KB
testcase_41 AC 11 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

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
b=[2,1]
if n not in p:
	for i in p:
		if n%i == 0:
			s = n/i
			b = [i,s]
			break
print b[1]
0