Task: | Vuodet |
Sender: | feenix |
Submission time: | 2025-09-05 20:48:16 +0300 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.24 s | details |
#2 | ACCEPTED | 0.06 s | details |
#3 | ACCEPTED | 0.06 s | details |
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 |