結果

問題 No.1464 Number Conversion
ユーザー googol_S0googol_S0
提出日時 2021-04-02 21:32:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,324 KB
実行使用メモリ 89,416 KB
最終ジャッジ日時 2023-08-25 11:34:19
合計ジャッジ時間 8,092 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 217 ms
89,340 KB
testcase_01 AC 222 ms
89,104 KB
testcase_02 AC 217 ms
89,120 KB
testcase_03 AC 217 ms
89,276 KB
testcase_04 AC 217 ms
89,188 KB
testcase_05 AC 218 ms
89,392 KB
testcase_06 AC 214 ms
89,044 KB
testcase_07 AC 215 ms
89,364 KB
testcase_08 AC 215 ms
89,076 KB
testcase_09 AC 217 ms
89,280 KB
testcase_10 AC 219 ms
89,132 KB
testcase_11 AC 217 ms
89,132 KB
testcase_12 AC 218 ms
89,280 KB
testcase_13 AC 217 ms
89,168 KB
testcase_14 AC 215 ms
89,408 KB
testcase_15 AC 217 ms
89,400 KB
testcase_16 AC 215 ms
89,396 KB
testcase_17 AC 214 ms
89,416 KB
testcase_18 AC 219 ms
89,040 KB
testcase_19 AC 220 ms
89,324 KB
testcase_20 AC 217 ms
89,396 KB
testcase_21 AC 219 ms
89,132 KB
testcase_22 AC 217 ms
89,360 KB
testcase_23 AC 221 ms
88,980 KB
testcase_24 AC 214 ms
88,976 KB
testcase_25 AC 211 ms
89,176 KB
testcase_26 AC 216 ms
89,232 KB
testcase_27 AC 217 ms
89,400 KB
testcase_28 AC 217 ms
89,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import *
N=input()
if (not('.' in N)) or (set(N[N.index('.')+1:])==set('0')):
  print(int(float(N)),1,sep='/')
else:
  print(Fraction(N))
0