結果

問題 No.1842 Decimal Point
ユーザー otoshigootoshigo
提出日時 2022-02-18 22:25:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,262 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 1,334 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 78,224 KB
最終ジャッジ日時 2023-09-11 19:31:47
合計ジャッジ時間 4,612 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,236 KB
testcase_01 AC 486 ms
78,224 KB
testcase_02 AC 1,262 ms
77,360 KB
testcase_03 AC 884 ms
77,268 KB
testcase_04 AC 843 ms
77,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    a,b,c = map(int,input().split())
    m = a*pow(10,c,b)%b;
    for i in range(10):
        if (a*pow(10,c,10*b)-m-b*i)%(10*b) == 0:
            print(i)
0