QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#278865 | #5661. Multi-Ladders | dat# | TL | 15ms | 9088kb | Python3 | 128b | 2023-12-07 21:35:08 | 2023-12-07 21:35:08 |
Judging History
answer
t = int(input())
while t:
t -= 1
a, b, c = [int(e) for e in input().split()]
print(a*((b*c)**a) % (10**9 + 7))
详细
Test #1:
score: 100
Accepted
time: 15ms
memory: 9088kb
input:
1 2 3 3
output:
162
result:
ok single line: '162'
Test #2:
score: -100
Time Limit Exceeded
input:
20 2 3 3 1 3 3 10 3 0 10 3 2 1 21 2 1 22 0 2000 15000 2000 12000 30000 200000 1000000000 3 3 2 1000000000 3 2 3 100000000 1000000000 1000000000 10 1000000000 3 100000000 2 1000000000 100000000 1 1000000000 10 1 1000000000 100000000 1 1000 100000000 1000000000 1000000000 0 1000000000 1000000000 1 100...
output:
162 9 0 604661760 42 0 438449467 866153317