結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2016-02-24 16:58:02 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 160 ms / 2,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 38,400 KB |
最終ジャッジ日時 | 2024-11-15 12:02:17 |
合計ジャッジ時間 | 2,578 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
#coding: UTF-8 import sys from operator import itemgetter import re import itertools import math N = input() if (N%3==0): print 3 elif (N%4==0): print 4 else: 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