結果

問題 No.1842 Decimal Point
ユーザー 遭難者遭難者
提出日時 2022-02-18 23:55:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 427 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 1,416 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 79,184 KB
最終ジャッジ日時 2023-09-11 20:17:34
合計ジャッジ時間 3,133 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,964 KB
testcase_01 AC 372 ms
79,184 KB
testcase_02 AC 427 ms
78,368 KB
testcase_03 AC 384 ms
78,544 KB
testcase_04 AC 389 ms
78,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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