結果

問題 No.1464 Number Conversion
ユーザー roarisroaris
提出日時 2021-04-02 21:39:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 72,156 KB
最終ジャッジ日時 2023-08-25 11:46:09
合計ジャッジ時間 4,077 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
71,780 KB
testcase_01 AC 86 ms
71,680 KB
testcase_02 AC 86 ms
71,720 KB
testcase_03 AC 88 ms
71,796 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 86 ms
71,996 KB
testcase_07 AC 85 ms
71,856 KB
testcase_08 AC 87 ms
71,700 KB
testcase_09 AC 86 ms
71,936 KB
testcase_10 AC 84 ms
71,684 KB
testcase_11 AC 85 ms
71,720 KB
testcase_12 AC 85 ms
71,836 KB
testcase_13 AC 85 ms
71,648 KB
testcase_14 AC 86 ms
71,620 KB
testcase_15 AC 91 ms
71,668 KB
testcase_16 AC 86 ms
71,784 KB
testcase_17 AC 86 ms
71,508 KB
testcase_18 WA -
testcase_19 AC 88 ms
71,648 KB
testcase_20 AC 85 ms
71,524 KB
testcase_21 AC 87 ms
72,012 KB
testcase_22 WA -
testcase_23 AC 86 ms
71,688 KB
testcase_24 AC 88 ms
71,984 KB
testcase_25 WA -
testcase_26 AC 86 ms
71,836 KB
testcase_27 AC 87 ms
71,896 KB
testcase_28 AC 85 ms
72,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *
from math import gcd

X = float(input())
X *= 10**14
X = int(X)
G = gcd(X, 10**14)
print(str(X//G)+'/'+str(10**14//G))
0