結果

問題 No.1464 Number Conversion
ユーザー rodearodea
提出日時 2021-04-09 15:53:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 231 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 1,704 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 89,096 KB
最終ジャッジ日時 2023-09-07 04:08:35
合計ジャッジ時間 8,833 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 227 ms
88,936 KB
testcase_01 AC 223 ms
88,980 KB
testcase_02 AC 220 ms
89,036 KB
testcase_03 AC 221 ms
89,084 KB
testcase_04 AC 219 ms
88,648 KB
testcase_05 AC 223 ms
88,952 KB
testcase_06 AC 221 ms
88,892 KB
testcase_07 AC 231 ms
88,724 KB
testcase_08 AC 215 ms
88,932 KB
testcase_09 AC 218 ms
88,936 KB
testcase_10 AC 220 ms
88,752 KB
testcase_11 AC 216 ms
89,052 KB
testcase_12 AC 219 ms
88,788 KB
testcase_13 AC 219 ms
88,756 KB
testcase_14 AC 214 ms
88,988 KB
testcase_15 AC 217 ms
88,836 KB
testcase_16 AC 220 ms
88,976 KB
testcase_17 AC 217 ms
88,952 KB
testcase_18 AC 218 ms
88,980 KB
testcase_19 AC 220 ms
89,056 KB
testcase_20 AC 222 ms
88,964 KB
testcase_21 AC 216 ms
88,924 KB
testcase_22 AC 215 ms
89,000 KB
testcase_23 AC 216 ms
88,756 KB
testcase_24 AC 215 ms
89,096 KB
testcase_25 AC 222 ms
88,892 KB
testcase_26 AC 215 ms
89,032 KB
testcase_27 AC 220 ms
88,896 KB
testcase_28 AC 218 ms
88,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
from math import gcd

x = Decimal(input())

x *= 10 ** 9
den = 10 ** 9
x = int(x)
g = gcd(x, den)
x //= g
den //= g

print("{}/{}".format(x, den))
0