結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,672 KB
testcase_01 AC 90 ms
71,508 KB
testcase_02 AC 89 ms
72,076 KB
testcase_03 AC 88 ms
71,868 KB
testcase_04 AC 90 ms
71,784 KB
testcase_05 AC 92 ms
71,496 KB
testcase_06 AC 91 ms
71,504 KB
testcase_07 AC 89 ms
71,976 KB
testcase_08 AC 91 ms
71,760 KB
testcase_09 AC 89 ms
71,756 KB
testcase_10 AC 89 ms
71,920 KB
testcase_11 AC 89 ms
71,684 KB
testcase_12 WA -
testcase_13 AC 90 ms
71,680 KB
testcase_14 AC 89 ms
71,724 KB
testcase_15 AC 88 ms
71,780 KB
testcase_16 AC 91 ms
71,652 KB
testcase_17 AC 89 ms
71,752 KB
testcase_18 AC 89 ms
71,712 KB
testcase_19 AC 89 ms
71,780 KB
testcase_20 AC 89 ms
71,884 KB
testcase_21 AC 87 ms
71,608 KB
testcase_22 AC 90 ms
71,836 KB
testcase_23 AC 88 ms
72,088 KB
testcase_24 AC 89 ms
71,752 KB
testcase_25 AC 88 ms
71,868 KB
testcase_26 AC 87 ms
71,508 KB
testcase_27 AC 87 ms
71,780 KB
testcase_28 AC 89 ms
71,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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