結果

問題 No.1464 Number Conversion
ユーザー roarisroaris
提出日時 2021-04-02 21:38:54
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 72,168 KB
最終ジャッジ日時 2023-08-25 11:44:58
合計ジャッジ時間 4,043 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
72,056 KB
testcase_01 AC 85 ms
71,500 KB
testcase_02 AC 86 ms
71,700 KB
testcase_03 AC 85 ms
72,068 KB
testcase_04 AC 86 ms
71,732 KB
testcase_05 AC 85 ms
71,656 KB
testcase_06 AC 85 ms
72,040 KB
testcase_07 AC 86 ms
71,896 KB
testcase_08 WA -
testcase_09 AC 88 ms
71,500 KB
testcase_10 WA -
testcase_11 AC 87 ms
71,892 KB
testcase_12 AC 87 ms
71,752 KB
testcase_13 AC 87 ms
71,844 KB
testcase_14 AC 87 ms
71,652 KB
testcase_15 AC 87 ms
72,028 KB
testcase_16 WA -
testcase_17 AC 86 ms
71,664 KB
testcase_18 WA -
testcase_19 AC 87 ms
71,676 KB
testcase_20 WA -
testcase_21 AC 84 ms
71,492 KB
testcase_22 WA -
testcase_23 AC 85 ms
72,024 KB
testcase_24 AC 84 ms
72,168 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 84 ms
71,992 KB
testcase_28 AC 86 ms
71,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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