結果
問題 | No.1842 Decimal Point |
ユーザー | GrayCoder |
提出日時 | 2022-02-18 22:18:32 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 86,924 KB |
実行使用メモリ | 244,328 KB |
最終ジャッジ日時 | 2023-09-11 19:24:07 |
合計ジャッジ時間 | 6,939 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
ソースコード
from decimal import * from sys import stdin def main(): input = lambda: stdin.readline()[:-1] T = int(input()) for _ in [0] * T: A, B, C = map(int, input().split()) getcontext().prec = C + 1 x = str(Decimal(A) / Decimal(B)).split(".") if len(x[1]) < C: print(0) else: print(x[1][C - 1]) main()