QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#329090 | #5581. Champernowne Count | jbalaty# | WA | 9ms | 9256kb | Python3 | 406b | 2024-02-16 13:00:25 | 2024-02-16 13:00:26 |
Judging History
answer
def obtainCount(n, k):
champ = ""
total = 0
for i in range(1, n + 1):
champ += f'{i}'
numLen = len(champ)
# For the current number, check if it's
# divisible by k.
remainder = 0
for j in range(numLen):
remainder = (remainder*10 + int(champ[j])) % k
if remainder == 0:
total += 1
return total
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 9ms
memory: 9256kb
input:
4 2
output:
result:
wrong answer 1st lines differ - expected: '2', found: ''