結果
問題 |
No.1464 Number Conversion
|
ユーザー |
|
提出日時 | 2022-05-14 03:58:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 600 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 62,976 KB |
最終ジャッジ日時 | 2024-07-22 09:51:24 |
合計ジャッジ時間 | 3,044 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 WA * 2 |
ソースコード
# 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) X = float(input()) S = int(X*10**8) B = int(10**8) gcd = math.gcd(S, B) print(str(S//gcd)+ '/' + str(B//gcd))