結果

問題 No.312 置換処理
ユーザー soupesuteakasoupesuteaka
提出日時 2016-02-24 16:02:16
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 934 ms
コンパイル使用メモリ 7,164 KB
実行使用メモリ 38,472 KB
最終ジャッジ日時 2023-10-23 19:37:54
合計ジャッジ時間 3,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
12,804 KB
testcase_01 AC 76 ms
21,976 KB
testcase_02 AC 150 ms
38,472 KB
testcase_03 AC 109 ms
29,300 KB
testcase_04 AC 11 ms
6,876 KB
testcase_05 AC 46 ms
38,208 KB
testcase_06 AC 30 ms
19,864 KB
testcase_07 AC 71 ms
34,512 KB
testcase_08 AC 32 ms
25,144 KB
testcase_09 AC 20 ms
15,180 KB
testcase_10 AC 22 ms
16,500 KB
testcase_11 AC 50 ms
33,260 KB
testcase_12 AC 24 ms
19,600 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 11 ms
6,876 KB
testcase_23 WA -
testcase_24 AC 11 ms
6,876 KB
testcase_25 AC 11 ms
6,876 KB
testcase_26 AC 11 ms
6,876 KB
testcase_27 WA -
testcase_28 AC 11 ms
6,876 KB
testcase_29 AC 11 ms
6,876 KB
testcase_30 AC 23 ms
9,636 KB
testcase_31 WA -
testcase_32 AC 24 ms
9,636 KB
testcase_33 AC 55 ms
16,500 KB
testcase_34 AC 54 ms
16,696 KB
testcase_35 AC 24 ms
16,696 KB
testcase_36 AC 11 ms
6,876 KB
testcase_37 AC 11 ms
6,876 KB
testcase_38 WA -
testcase_39 AC 21 ms
15,972 KB
testcase_40 AC 12 ms
7,788 KB
testcase_41 AC 11 ms
6,880 KB
testcase_42 AC 12 ms
7,788 KB
testcase_43 AC 11 ms
6,876 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
from operator import itemgetter
import re
import itertools
import math

N = input()

while (N%2==0):
	N /= 2
	
flg = True
for i in range(3,long(math.sqrt(N)+1)):
	if (N%i==0):
		print i
		flg = False
		break

if (flg) :
	print N
0