Submission details
Task:Vuodet
Sender:feenix
Submission time:2025-09-05 20:48:16 +0300
Language:Python3 (PyPy3)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.24 sdetails
#2ACCEPTED0.06 sdetails
#3ACCEPTED0.06 sdetails

Code

import re

input = input().split()
first = int(input[0])
last = int(input[1])

match = []

for year in range(first, last + 1):
    years = str(year)
    leet = str(year * 1337)
    if re.match(r'^.*{}.*{}.*{}.*{}.*$'.format(years[0], years[1], years[2], years[3]), leet):
        match.append(year)

print(len(match))
print(*match, sep='\n')

Test details

Test 1

Verdict: ACCEPTED

input
1600 2400

correct output
6
1625
2000
2025
2050
...

user output
6
1625
2000
2025
2050
...

Test 2

Verdict: ACCEPTED

input
1773 1773

correct output
0

user output
0

Test 3

Verdict: ACCEPTED

input
2025 2025

correct output
1
2025

user output
1
2025