結果
| 問題 | No.1842 Decimal Point |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-18 22:18:32 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 279,040 KB |
| 最終ジャッジ日時 | 2026-08-01 16:15:09 |
| 合計ジャッジ時間 | 7,277 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 4 |
ソースコード
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()