| Task: | Vuodet |
| Sender: | tkok |
| Submission time: | 2025-09-06 00:09:51 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | 100 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 100 |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.05 s | details |
| #2 | ACCEPTED | 0.04 s | details |
| #3 | ACCEPTED | 0.04 s | details |
Code
a, b = [int(x) for x in input().split()]
c = 0
okt = []
while a <= b:
v = a * 1337
v_str = str(v)
a_str = str(a)
for ch in v_str:
if ch == a_str[0]:
a_str = a_str[1:]
if len(a_str) == 0:
c += 1
okt.append(a)
break
a += 1
print(c)
for ok in okt:
print(ok)
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 |
