結果

問題 No.1842 Decimal Point
ユーザー 👑 colognecologne
提出日時 2022-03-14 20:07:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 373 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 1,058 ms
コンパイル使用メモリ 81,648 KB
実行使用メモリ 75,868 KB
最終ジャッジ日時 2023-10-21 07:04:50
合計ジャッジ時間 3,508 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,392 KB
testcase_01 AC 350 ms
75,856 KB
testcase_02 AC 373 ms
75,868 KB
testcase_03 AC 357 ms
75,868 KB
testcase_04 AC 332 ms
75,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    T = int(input())
    for i in range(T):
        a, b, c = map(int, input().split())
        m = a * pow(10, c-1, b) % b
        print(m*10//b)


if __name__ == '__main__':
    main()
0