結果

問題 No.1464 Number Conversion
ユーザー medchemmedchem
提出日時 2021-09-17 08:13:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 1,127 ms
コンパイル使用メモリ 86,544 KB
実行使用メモリ 71,556 KB
最終ジャッジ日時 2023-09-12 04:18:51
合計ジャッジ時間 4,806 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,556 KB
testcase_01 AC 75 ms
71,024 KB
testcase_02 AC 74 ms
71,076 KB
testcase_03 AC 74 ms
71,220 KB
testcase_04 AC 73 ms
71,220 KB
testcase_05 WA -
testcase_06 AC 75 ms
71,468 KB
testcase_07 AC 75 ms
71,380 KB
testcase_08 AC 74 ms
71,552 KB
testcase_09 AC 73 ms
71,460 KB
testcase_10 AC 75 ms
70,964 KB
testcase_11 AC 73 ms
71,132 KB
testcase_12 AC 75 ms
71,436 KB
testcase_13 AC 74 ms
71,360 KB
testcase_14 AC 77 ms
71,384 KB
testcase_15 AC 75 ms
71,552 KB
testcase_16 AC 76 ms
71,060 KB
testcase_17 AC 75 ms
71,400 KB
testcase_18 WA -
testcase_19 AC 74 ms
71,376 KB
testcase_20 AC 74 ms
71,320 KB
testcase_21 AC 75 ms
71,464 KB
testcase_22 AC 74 ms
71,468 KB
testcase_23 AC 76 ms
70,992 KB
testcase_24 AC 77 ms
71,456 KB
testcase_25 AC 75 ms
70,768 KB
testcase_26 AC 73 ms
70,952 KB
testcase_27 AC 73 ms
71,456 KB
testcase_28 AC 74 ms
70,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def lcm(a,b):
    lcm=a*b//math.gcd(a,b)
    return lcm

x=float(input())
x*=10**8
x=int(x)

S=x
B=10**8

gcd=math.gcd(S,B)

print(str(S//gcd)+"/"+str(B//gcd))
0