結果

問題 No.312 置換処理
コンテスト
ユーザー
提出日時 2015-12-06 17:14:50
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
TLE  
実行時間 -
コード長 264 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 81,564 KB
実行使用メモリ 99,352 KB
最終ジャッジ日時 2026-07-18 00:30:45
合計ジャッジ時間 4,276 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 43
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from sys import stdin, stdout
from decimal import Decimal as d

def dec_range(x,y):
  x= d(x)
  y= d(y)
  while x < y:
    yield x
    x= x+1

def f(n):
  n= d(n)
  for y in dec_range(d(3),n):
    if n%y == d(0): return y
  return n

n= stdin.readline()
print f(n)
0