結果

問題 No.25 有限小数
ユーザー convexineqconvexineq
提出日時 2020-11-22 06:08:08
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-09-30 22:30:30
合計ジャッジ時間 3,901 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,120 KB
testcase_01 AC 75 ms
71,264 KB
testcase_02 AC 75 ms
71,368 KB
testcase_03 AC 74 ms
71,584 KB
testcase_04 AC 75 ms
71,356 KB
testcase_05 AC 74 ms
71,384 KB
testcase_06 AC 75 ms
71,440 KB
testcase_07 AC 74 ms
71,336 KB
testcase_08 AC 73 ms
71,332 KB
testcase_09 AC 74 ms
71,476 KB
testcase_10 AC 75 ms
71,408 KB
testcase_11 AC 75 ms
71,224 KB
testcase_12 WA -
testcase_13 AC 75 ms
71,492 KB
testcase_14 AC 76 ms
71,188 KB
testcase_15 AC 77 ms
71,368 KB
testcase_16 AC 77 ms
71,288 KB
testcase_17 AC 72 ms
71,444 KB
testcase_18 AC 72 ms
71,128 KB
testcase_19 AC 73 ms
71,392 KB
testcase_20 AC 73 ms
71,320 KB
testcase_21 AC 74 ms
71,256 KB
testcase_22 AC 75 ms
71,416 KB
testcase_23 AC 76 ms
71,424 KB
testcase_24 AC 76 ms
71,436 KB
testcase_25 AC 77 ms
71,412 KB
testcase_26 AC 77 ms
71,440 KB
testcase_27 AC 76 ms
71,392 KB
testcase_28 AC 76 ms
71,648 KB
testcase_29 AC 75 ms
71,476 KB
testcase_30 AC 75 ms
71,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
m = int(input())
if n%m==0:
    n//=m
    while n%10==0: n//=10
    print(n)
    exit()
for i in range(99):
    n *= 10
    if n%m==0:
        print(n//m%10)
        break
else:
    print(-1)
0