結果

問題 No.1464 Number Conversion
ユーザー otsunekootsuneko
提出日時 2021-05-05 00:49:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 76,596 KB
最終ジャッジ日時 2023-10-01 02:05:33
合計ジャッジ時間 3,754 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 70 ms
71,360 KB
testcase_04 AC 74 ms
71,596 KB
testcase_05 AC 71 ms
71,460 KB
testcase_06 AC 70 ms
71,424 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 71 ms
71,400 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 74 ms
76,248 KB
testcase_14 WA -
testcase_15 AC 72 ms
71,244 KB
testcase_16 AC 71 ms
71,160 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 72 ms
76,148 KB
testcase_21 AC 74 ms
76,428 KB
testcase_22 WA -
testcase_23 AC 69 ms
71,516 KB
testcase_24 AC 71 ms
71,396 KB
testcase_25 AC 70 ms
71,404 KB
testcase_26 WA -
testcase_27 AC 70 ms
71,308 KB
testcase_28 AC 69 ms
71,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X = float(input())

if X == 0:
    print(0)
    exit()

for i in range(1,10**5+1):
    X2 = X*i
    if int(X2) != 0 and X2 == int(X2):
        print(str(int(X2))+"/"+str(i))
        break
0