結果

問題 No.1464 Number Conversion
ユーザー rodea
提出日時 2021-04-09 15:53:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 80,460 KB
最終ジャッジ日時 2024-06-24 22:44:31
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
from math import gcd

x = Decimal(input())

x *= 10 ** 9
den = 10 ** 9
x = int(x)
g = gcd(x, den)
x //= g
den //= g

print("{}/{}".format(x, den))
0