結果
| 問題 | No.1464 Number Conversion |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-14 04:00:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 2,000 ms |
| コード長 | 629 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 85,044 KB |
| 実行使用メモリ | 92,612 KB |
| 最終ジャッジ日時 | 2026-04-03 08:30:02 |
| 合計ジャッジ時間 | 3,637 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
# 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))