Task: | Vuodet |
Sender: | Yytsi |
Submission time: | 2025-09-07 16:47:47 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.02 s | details |
#2 | ACCEPTED | 0.02 s | details |
#3 | ACCEPTED | 0.02 s | details |
Code
a, b = map(int, input().split()) def isLeet(x): tp = str(x)+"#" i = 0 for c in str(x*1337): if c == tp[i]: i += 1 return tp[i] == "#" ls = [x for x in range(a, b+1) if isLeet(x)] print(len(ls)) print("\n".join(map(str,ls)))
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 |