結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
72,004 KB
testcase_01 AC 89 ms
71,748 KB
testcase_02 AC 89 ms
71,564 KB
testcase_03 AC 89 ms
71,860 KB
testcase_04 WA -
testcase_05 AC 90 ms
71,728 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 89 ms
71,800 KB
testcase_10 WA -
testcase_11 AC 93 ms
71,656 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 89 ms
71,676 KB
testcase_18 WA -
testcase_19 AC 91 ms
71,868 KB
testcase_20 WA -
testcase_21 AC 91 ms
71,688 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 90 ms
71,576 KB
testcase_28 AC 89 ms
71,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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