QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#24170 | #3004. It's a Mod, Mod, Mod, Mod World | Jesus123 | TL | 0ms | 0kb | Python3 | 301b | 2022-03-27 03:57:26 | 2022-04-30 05:13:47 |
Judging History
answer
w = int(input())
respuesta = 0
lista = ""
for i in range (0, w):
p, q, n= [int(c) for c in input().split(' ')]
for j in range (1, n+1):
respuesta = respuesta + (p * j) % q
lista = lista + str(respuesta) + "\n"
respuesta = 0
lista = lista[:-1]
print(lista)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Time Limit Exceeded
input:
91125 999956 999956 999956 999956 999956 999957 999956 999956 999958 999956 999956 999959 999956 999956 999960 999956 999956 999961 999956 999956 999962 999956 999956 999963 999956 999956 999964 999956 999956 999965 999956 999956 999966 999956 999956 999967 999956 999956 999968 999956 999956 999969 ...