結果

問題 No.1842 Decimal Point
ユーザー asumo0729asumo0729
提出日時 2022-02-20 13:15:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 276 ms / 2,000 ms
コード長 696 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 80,436 KB
最終ジャッジ日時 2023-09-11 20:59:06
合計ジャッジ時間 2,229 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
72,432 KB
testcase_01 AC 214 ms
80,436 KB
testcase_02 AC 276 ms
79,900 KB
testcase_03 AC 235 ms
79,996 KB
testcase_04 AC 232 ms
80,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from operator import itemgetter
from collections import defaultdict, deque
import heapq
import bisect
import math
import itertools
import copy

stdin=sys.stdin
sys.setrecursionlimit(10 ** 8)

ip=lambda: int(sp())
fp=lambda: float(sp())
lp=lambda:list(map(int,stdin.readline().split()))
sp=lambda:stdin.readline().rstrip()
Yp=lambda:print('Yes')
Np=lambda:print('No')
inf = 1 << 60
inf = float('inf')
mod = 10 ** 9 + 7
mod = 998244353
eps = 1e-9
sortkey1 = itemgetter(0)
sortkey2 = lambda x: (x[0], x[1])

###############################################################

T  = ip()
for _ in range(T):
    a, b, c = lp()
    ans = ((a * pow(10, c, b * 10)) % (b * 10)) // b
    print(ans)
0