結果

問題 No.1842 Decimal Point
ユーザー 👑 rin204rin204
提出日時 2022-02-18 21:23:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 455 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,636 KB
実行使用メモリ 78,724 KB
最終ジャッジ日時 2023-09-11 18:28:00
合計ジャッジ時間 2,881 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,364 KB
testcase_01 AC 455 ms
78,492 KB
testcase_02 AC 407 ms
78,480 KB
testcase_03 AC 369 ms
78,724 KB
testcase_04 AC 376 ms
78,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    a, b, c = map(int, input().split())
    a *= pow(10, c, 10 * b)
    a %= 10 * b
    print(a // b)

for _ in range(int(input())):
    solve()
0