結果

問題 No.1464 Number Conversion
ユーザー otsunekootsuneko
提出日時 2021-05-05 00:55:08
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 76,952 KB
最終ジャッジ日時 2023-10-01 03:07:32
合計ジャッジ時間 5,541 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,340 KB
testcase_01 AC 70 ms
71,180 KB
testcase_02 AC 707 ms
76,496 KB
testcase_03 AC 70 ms
71,320 KB
testcase_04 AC 69 ms
71,348 KB
testcase_05 AC 72 ms
71,520 KB
testcase_06 AC 71 ms
71,516 KB
testcase_07 AC 86 ms
76,532 KB
testcase_08 AC 84 ms
76,668 KB
testcase_09 AC 77 ms
75,976 KB
testcase_10 AC 71 ms
71,248 KB
testcase_11 AC 194 ms
76,660 KB
testcase_12 WA -
testcase_13 AC 76 ms
76,320 KB
testcase_14 AC 115 ms
76,688 KB
testcase_15 AC 72 ms
71,368 KB
testcase_16 AC 70 ms
71,232 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 75 ms
76,412 KB
testcase_21 AC 75 ms
76,024 KB
testcase_22 WA -
testcase_23 AC 71 ms
71,372 KB
testcase_24 AC 70 ms
71,364 KB
testcase_25 AC 70 ms
71,188 KB
testcase_26 WA -
testcase_27 AC 71 ms
71,044 KB
testcase_28 AC 70 ms
71,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X = float(input())

if X == 0:
    print("0/1")
    exit()

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