QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#278865#5661. Multi-Laddersdat#TL 15ms9088kbPython3128b2023-12-07 21:35:082023-12-07 21:35:08

Judging History

你现在查看的是最新测评结果

  • [2023-12-07 21:35:08]
  • 评测
  • 测评结果:TL
  • 用时:15ms
  • 内存:9088kb
  • [2023-12-07 21:35:08]
  • 提交

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

result: