結果

問題 No.312 置換処理
ユーザー tookunn_1213tookunn_1213
提出日時 2015-12-12 14:11:45
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 6,660 KB
実行使用メモリ 37,888 KB
最終ジャッジ日時 2023-10-13 11:45:11
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
29,840 KB
testcase_01 AC 180 ms
27,544 KB
testcase_02 AC 259 ms
37,840 KB
testcase_03 AC 260 ms
37,888 KB
testcase_04 AC 11 ms
6,172 KB
testcase_05 AC 48 ms
37,504 KB
testcase_06 AC 45 ms
24,292 KB
testcase_07 AC 104 ms
33,684 KB
testcase_08 AC 41 ms
31,708 KB
testcase_09 AC 26 ms
17,580 KB
testcase_10 AC 28 ms
20,056 KB
testcase_11 AC 63 ms
32,292 KB
testcase_12 AC 34 ms
24,180 KB
testcase_13 AC 44 ms
35,240 KB
testcase_14 AC 36 ms
26,852 KB
testcase_15 AC 32 ms
23,848 KB
testcase_16 AC 25 ms
16,972 KB
testcase_17 AC 40 ms
29,196 KB
testcase_18 AC 39 ms
29,492 KB
testcase_19 AC 44 ms
33,132 KB
testcase_20 AC 46 ms
36,296 KB
testcase_21 AC 49 ms
37,040 KB
testcase_22 AC 11 ms
6,076 KB
testcase_23 WA -
testcase_24 AC 11 ms
6,140 KB
testcase_25 AC 12 ms
6,080 KB
testcase_26 AC 11 ms
6,024 KB
testcase_27 AC 11 ms
6,180 KB
testcase_28 AC 11 ms
6,244 KB
testcase_29 AC 11 ms
6,092 KB
testcase_30 AC 44 ms
9,988 KB
testcase_31 AC 19 ms
11,948 KB
testcase_32 AC 35 ms
9,036 KB
testcase_33 AC 89 ms
15,812 KB
testcase_34 AC 91 ms
16,124 KB
testcase_35 AC 31 ms
16,112 KB
testcase_36 AC 11 ms
6,244 KB
testcase_37 AC 11 ms
6,076 KB
testcase_38 AC 11 ms
6,176 KB
testcase_39 AC 23 ms
15,268 KB
testcase_40 AC 13 ms
7,376 KB
testcase_41 AC 11 ms
6,116 KB
testcase_42 AC 12 ms
7,148 KB
testcase_43 AC 12 ms
6,092 KB
testcase_44 AC 11 ms
6,240 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:
	print N / 2
elif not flag:
	print N
0