結果

問題 No.1842 Decimal Point
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-02-19 16:29:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 391 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 724 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 78,788 KB
最終ジャッジ日時 2023-09-11 20:42:41
合計ジャッジ時間 2,800 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,416 KB
testcase_01 AC 322 ms
78,788 KB
testcase_02 AC 391 ms
78,572 KB
testcase_03 AC 386 ms
78,728 KB
testcase_04 AC 358 ms
78,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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