結果
| 問題 |
No.1464 Number Conversion
|
| コンテスト | |
| ユーザー |
mono_0812
|
| 提出日時 | 2021-04-02 22:13:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 2,000 ms |
| コード長 | 552 bytes |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 82,092 KB |
| 実行使用メモリ | 81,628 KB |
| 最終ジャッジ日時 | 2024-12-23 19:44:16 |
| 合計ジャッジ時間 | 5,608 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
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)
mono_0812