結果

問題 No.1464 Number Conversion
ユーザー aram14aram14
提出日時 2021-04-02 22:03:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2023-08-25 12:16:04
合計ジャッジ時間 2,057 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,520 KB
testcase_01 WA -
testcase_02 AC 25 ms
9,624 KB
testcase_03 AC 25 ms
9,660 KB
testcase_04 AC 24 ms
9,660 KB
testcase_05 AC 24 ms
9,660 KB
testcase_06 AC 24 ms
9,516 KB
testcase_07 AC 27 ms
9,660 KB
testcase_08 AC 25 ms
9,856 KB
testcase_09 AC 25 ms
9,520 KB
testcase_10 AC 29 ms
9,768 KB
testcase_11 AC 25 ms
9,624 KB
testcase_12 AC 26 ms
9,588 KB
testcase_13 AC 26 ms
9,636 KB
testcase_14 AC 24 ms
9,648 KB
testcase_15 AC 25 ms
9,724 KB
testcase_16 AC 25 ms
9,720 KB
testcase_17 AC 24 ms
9,640 KB
testcase_18 AC 25 ms
9,620 KB
testcase_19 AC 25 ms
9,512 KB
testcase_20 AC 26 ms
9,668 KB
testcase_21 AC 25 ms
9,684 KB
testcase_22 AC 25 ms
9,716 KB
testcase_23 AC 25 ms
9,512 KB
testcase_24 WA -
testcase_25 AC 25 ms
9,716 KB
testcase_26 AC 25 ms
9,716 KB
testcase_27 AC 26 ms
9,656 KB
testcase_28 AC 26 ms
9,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction
x = input()
if float(x).is_integer():
    print(x + '/1')
else:
    ans = Fraction(x)
    print(ans)
0