結果

問題 No.312 置換処理
ユーザー tookunn_1213tookunn_1213
提出日時 2015-12-12 14:12:26
言語 Python2
(2.7.18)
結果
AC  
実行時間 254 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 6,640 KB
実行使用メモリ 37,820 KB
最終ジャッジ日時 2023-08-09 15:48:31
合計ジャッジ時間 4,041 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
29,864 KB
testcase_01 AC 178 ms
27,524 KB
testcase_02 AC 250 ms
37,820 KB
testcase_03 AC 254 ms
37,812 KB
testcase_04 AC 11 ms
6,192 KB
testcase_05 AC 45 ms
37,548 KB
testcase_06 AC 43 ms
24,188 KB
testcase_07 AC 99 ms
33,700 KB
testcase_08 AC 40 ms
31,804 KB
testcase_09 AC 25 ms
17,748 KB
testcase_10 AC 27 ms
19,956 KB
testcase_11 AC 59 ms
32,356 KB
testcase_12 AC 31 ms
24,284 KB
testcase_13 AC 44 ms
35,204 KB
testcase_14 AC 34 ms
26,804 KB
testcase_15 AC 33 ms
23,872 KB
testcase_16 AC 24 ms
16,908 KB
testcase_17 AC 37 ms
29,224 KB
testcase_18 AC 38 ms
29,376 KB
testcase_19 AC 42 ms
33,076 KB
testcase_20 AC 45 ms
36,272 KB
testcase_21 AC 45 ms
37,060 KB
testcase_22 AC 11 ms
6,192 KB
testcase_23 AC 11 ms
6,124 KB
testcase_24 AC 11 ms
6,168 KB
testcase_25 AC 11 ms
6,044 KB
testcase_26 AC 10 ms
6,132 KB
testcase_27 AC 11 ms
6,148 KB
testcase_28 AC 10 ms
6,164 KB
testcase_29 AC 11 ms
6,144 KB
testcase_30 AC 42 ms
9,976 KB
testcase_31 AC 18 ms
11,888 KB
testcase_32 AC 34 ms
9,024 KB
testcase_33 AC 87 ms
15,740 KB
testcase_34 AC 87 ms
16,148 KB
testcase_35 AC 29 ms
16,148 KB
testcase_36 AC 11 ms
6,248 KB
testcase_37 AC 11 ms
6,228 KB
testcase_38 AC 11 ms
6,020 KB
testcase_39 AC 21 ms
15,432 KB
testcase_40 AC 12 ms
7,500 KB
testcase_41 AC 11 ms
6,080 KB
testcase_42 AC 12 ms
7,140 KB
testcase_43 AC 11 ms
6,080 KB
testcase_44 AC 11 ms
6,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = long(raw_input())
flag = False
for i in range(3,int(math.sqrt(N)) + 1):
	if N % i == 0:
		flag = True
		print i
		break
if not flag and N % 2 == 0 and N / 2 != 2:
	print N / 2
elif not flag:
	print N
0