結果
| 問題 |
No.1842 Decimal Point
|
| コンテスト | |
| ユーザー |
asumo0729
|
| 提出日時 | 2022-02-20 13:15:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 242 ms / 2,000 ms |
| コード長 | 696 bytes |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2024-06-29 10:46:12 |
| 合計ジャッジ時間 | 1,786 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
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)
asumo0729