結果

問題 No.1842 Decimal Point
ユーザー 👑 KazunKazun
提出日時 2022-02-18 21:37:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 221 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 78,240 KB
最終ジャッジ日時 2023-09-11 18:42:43
合計ジャッジ時間 1,815 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,216 KB
testcase_01 AC 138 ms
78,240 KB
testcase_02 AC 221 ms
78,240 KB
testcase_03 AC 179 ms
78,168 KB
testcase_04 AC 179 ms
78,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
write=sys.stdout.write


T=int(input())
Ans=[0]*T
for t in range(T):
    A,B,C=map(int,input().split())

    alpha=(A%(10*B))*pow(10,C,10*B)
    Ans[t]=alpha//B%10

write("\n".join(map(str,Ans)))
0