結果

問題 No.1842 Decimal Point
ユーザー lloyzlloyz
提出日時 2022-02-18 23:40:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 241 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 78,036 KB
最終ジャッジ日時 2023-09-11 20:11:14
合計ジャッジ時間 1,981 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,284 KB
testcase_01 AC 152 ms
78,004 KB
testcase_02 AC 241 ms
77,936 KB
testcase_03 AC 189 ms
77,928 KB
testcase_04 AC 199 ms
78,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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