結果

問題 No.1464 Number Conversion
ユーザー itsy68
提出日時 2022-05-14 04:00:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 629 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 85,248 KB
最終ジャッジ日時 2024-07-22 09:55:59
合計ジャッジ時間 4,917 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
import sys
from itertools import combinations, permutations, product, accumulate, groupby
from collections import defaultdict, deque, Counter
from functools import reduce
from operator import add, mul
import heapq
import bisect
import math
import copy
 
# sys.setrecursionlimit(10 ** 7)
input = lambda: sys.stdin.readline().rstrip()
INF = float("inf")
MOD = 10 ** 9 + 7

def my_lcm(x, y):
    return (x * y) // math.gcd(x, y)
from decimal import Decimal
X = Decimal(input())
S = int(X*10**8)
B = int(10**8)
gcd = math.gcd(S, B)
print(str(S//gcd)+ '/' + str(B//gcd))
0