結果

問題 No.1464 Number Conversion
ユーザー NoaSaberNoaSaber
提出日時 2021-04-30 19:23:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 2,100 ms
コンパイル使用メモリ 86,252 KB
実行使用メモリ 88,720 KB
最終ジャッジ日時 2023-09-25 20:56:45
合計ジャッジ時間 9,428 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 209 ms
88,600 KB
testcase_01 AC 214 ms
88,676 KB
testcase_02 AC 212 ms
88,532 KB
testcase_03 AC 213 ms
88,696 KB
testcase_04 AC 214 ms
88,580 KB
testcase_05 AC 220 ms
88,524 KB
testcase_06 AC 217 ms
88,312 KB
testcase_07 AC 213 ms
88,536 KB
testcase_08 AC 215 ms
88,524 KB
testcase_09 AC 217 ms
88,520 KB
testcase_10 AC 216 ms
88,556 KB
testcase_11 AC 209 ms
88,692 KB
testcase_12 AC 208 ms
88,472 KB
testcase_13 AC 216 ms
88,416 KB
testcase_14 AC 214 ms
88,344 KB
testcase_15 AC 210 ms
88,692 KB
testcase_16 AC 208 ms
88,532 KB
testcase_17 AC 213 ms
88,472 KB
testcase_18 AC 218 ms
88,628 KB
testcase_19 AC 214 ms
88,468 KB
testcase_20 AC 219 ms
88,416 KB
testcase_21 AC 210 ms
88,696 KB
testcase_22 AC 214 ms
88,520 KB
testcase_23 AC 211 ms
88,720 KB
testcase_24 AC 211 ms
88,492 KB
testcase_25 AC 216 ms
88,692 KB
testcase_26 AC 216 ms
88,552 KB
testcase_27 AC 216 ms
88,432 KB
testcase_28 AC 211 ms
88,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
N=int(Decimal(input())*10**9)
S=10**9
import math
x=math.gcd(N,S)
N//=x
S//=x
print(str(N)+"/"+str(S))
0