結果

問題 No.1842 Decimal Point
ユーザー KudeKude
提出日時 2022-02-18 21:50:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 411 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 78,916 KB
最終ジャッジ日時 2023-09-11 18:57:19
合計ジャッジ時間 2,897 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,432 KB
testcase_01 AC 361 ms
78,916 KB
testcase_02 AC 411 ms
78,492 KB
testcase_03 AC 396 ms
78,476 KB
testcase_04 AC 375 ms
78,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    a, b, c = map(int, input().split())
    r = (a * pow(10, c - 1, b) % b) * 10
    print(r // b)
0