結果

問題 No.1464 Number Conversion
コンテスト
ユーザー mono_0812
提出日時 2021-04-02 22:13:27
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 552 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 286 ms
コンパイル使用メモリ 84,864 KB
実行使用メモリ 85,120 KB
最終ジャッジ日時 2026-05-29 18:17:00
合計ジャッジ時間 4,305 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def I(): return input()
def IS(): return input().split()
def II(): return int(input())
def IIS(): return map(int, input().split())
def LIIS(): return list(map(int, input().split()))
def ZER(N): return [False for _ in range(N)]


INF = 10**30
MOD = 10**9+7


#         V
#    / ̄ψ ̄\
#   | 合格祈願 |
#   |_____|


##############################################################################

from decimal import Decimal
from fractions import Fraction
x=Decimal(input())
ans=str(Fraction(x))
if x//1==x/1:
    ans+="/1"
print(ans)
0