| Task: | Rabbits |
| Sender: | tjaa |
| Submission time: | 2025-11-26 17:52:40 +0200 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.04 s | details |
| #2 | WRONG ANSWER | 0.04 s | details |
| #3 | RUNTIME ERROR | 0.11 s | details |
| #4 | RUNTIME ERROR | 0.11 s | details |
| #5 | RUNTIME ERROR | 0.11 s | details |
| #6 | RUNTIME ERROR | 0.11 s | details |
| #7 | RUNTIME ERROR | 0.11 s | details |
| #8 | RUNTIME ERROR | 0.11 s | details |
| #9 | RUNTIME ERROR | 0.11 s | details |
| #10 | RUNTIME ERROR | 0.11 s | details |
| #11 | RUNTIME ERROR | 0.12 s | details |
| #12 | RUNTIME ERROR | 0.11 s | details |
| #13 | RUNTIME ERROR | 0.11 s | details |
| #14 | RUNTIME ERROR | 0.11 s | details |
| #15 | RUNTIME ERROR | 0.11 s | details |
| #16 | RUNTIME ERROR | 0.11 s | details |
| #17 | RUNTIME ERROR | 0.11 s | details |
| #18 | RUNTIME ERROR | 0.11 s | details |
| #19 | RUNTIME ERROR | 0.11 s | details |
| #20 | RUNTIME ERROR | 0.11 s | details |
| #21 | RUNTIME ERROR | 0.12 s | details |
| #22 | RUNTIME ERROR | 0.11 s | details |
| #23 | RUNTIME ERROR | 0.11 s | details |
Code
import sys
g = (1 + 5**.5) / 2
def fib(N):
return int((g**N - (1-g)**N) / 5**.5)
MAXN = 481
read = sys.stdin.readline
a, b = map(int, read().split())
def binary(lo: int, hi: int):
print(f"{lo} {hi}")
if(lo == hi):
global res
res = lo
return int(lo)
len: int = hi-lo
mid: int = lo + len//2
f = fib(mid)
if (f < a):
binary(mid, hi)
else:
binary(lo, mid)
binary(1, MAXN)
print(res)Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 1 1000000000000000000000000000... |
| correct output |
|---|
| 480 |
| user output |
|---|
| 1 481 1 241 1 121 1 61 1 31 ... |
Feedback: Output is longer than expected
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 1 1 |
| correct output |
|---|
| 2 |
| user output |
|---|
| 1 481 1 241 1 121 1 61 1 31 ... |
Feedback: Output is longer than expected
Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000000000000000000000000000... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1573 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 4
Verdict: RUNTIME ERROR
| input |
|---|
| 708610693340620844512521044951... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 5
Verdict: RUNTIME ERROR
| input |
|---|
| 786632967217302919379405189471... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 6
Verdict: RUNTIME ERROR
| input |
|---|
| 636957196297222930779072940972... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 7
Verdict: RUNTIME ERROR
| input |
|---|
| 114612974378925787282507968062... |
| correct output |
|---|
| 3 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 3 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 8
Verdict: RUNTIME ERROR
| input |
|---|
| 702530369037899946705172780410... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 9
Verdict: RUNTIME ERROR
| input |
|---|
| 274453166590443997807512962944... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 10
Verdict: RUNTIME ERROR
| input |
|---|
| 855307457139726034048493902602... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 11
Verdict: RUNTIME ERROR
| input |
|---|
| 639748223313530085297872188565... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 12
Verdict: RUNTIME ERROR
| input |
|---|
| 432993801671766821076571962007... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1565 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 13
Verdict: RUNTIME ERROR
| input |
|---|
| 879671727283213079665539196480... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 14
Verdict: RUNTIME ERROR
| input |
|---|
| 667785392416865594397610159182... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 15
Verdict: RUNTIME ERROR
| input |
|---|
| 781364162388340525444583784264... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 16
Verdict: RUNTIME ERROR
| input |
|---|
| 655747298541157143247235560738... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 17
Verdict: RUNTIME ERROR
| input |
|---|
| 403413620814634912261621439265... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1565 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 18
Verdict: RUNTIME ERROR
| input |
|---|
| 447646307232291168178477866864... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1565 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 19
Verdict: RUNTIME ERROR
| input |
|---|
| 295276605018840332007572176705... |
| correct output |
|---|
| 5 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 2 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1567 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 20
Verdict: RUNTIME ERROR
| input |
|---|
| 443559664146440701189824727251... |
| correct output |
|---|
| 2 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1565 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 21
Verdict: RUNTIME ERROR
| input |
|---|
| 734298173292503577661407215818... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 22
Verdict: RUNTIME ERROR
| input |
|---|
| 864568133527920094870111453259... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 5 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1564 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceededTest 23
Verdict: RUNTIME ERROR
| input |
|---|
| 352783378945989078522092015452... |
| correct output |
|---|
| 0 |
| user output |
|---|
| 1 481 241 481 361 481 421 481 451 481 ... |
Error:
Traceback (most recent call last):
File "input/code.py", line 29, in <module>
binary(1, MAXN)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 4 more times]
File "input/code.py", line 27, in binary
binary(lo, mid)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
File "input/code.py", line 25, in binary
binary(mid, hi)
[Previous line repeated 1565 more times]
File "input/code.py", line 13, in binary
print(f"{lo} {hi}")
RecursionError: maximum recursion depth exceeded