結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,636 KB
testcase_01 AC 91 ms
71,748 KB
testcase_02 AC 89 ms
71,836 KB
testcase_03 AC 90 ms
71,464 KB
testcase_04 AC 90 ms
71,740 KB
testcase_05 AC 90 ms
71,640 KB
testcase_06 AC 91 ms
72,012 KB
testcase_07 AC 91 ms
72,092 KB
testcase_08 AC 92 ms
71,480 KB
testcase_09 AC 89 ms
71,740 KB
testcase_10 AC 91 ms
71,664 KB
testcase_11 AC 91 ms
71,620 KB
testcase_12 AC 90 ms
71,748 KB
testcase_13 AC 91 ms
72,008 KB
testcase_14 AC 89 ms
71,616 KB
testcase_15 AC 90 ms
71,892 KB
testcase_16 AC 91 ms
71,632 KB
testcase_17 AC 90 ms
71,612 KB
testcase_18 WA -
testcase_19 AC 91 ms
71,688 KB
testcase_20 AC 92 ms
71,588 KB
testcase_21 AC 92 ms
71,696 KB
testcase_22 AC 90 ms
71,672 KB
testcase_23 AC 90 ms
71,696 KB
testcase_24 AC 90 ms
71,768 KB
testcase_25 AC 90 ms
71,616 KB
testcase_26 AC 91 ms
71,668 KB
testcase_27 AC 90 ms
71,840 KB
testcase_28 AC 89 ms
71,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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