CSES - HIIT Open 2024 - Results
Submission details
Task:Equilateral numbers
Sender:Kekoäly
Submission time:2024-11-16 12:45:20 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.06 sdetails
#20.06 sdetails
#30.06 sdetails
#40.07 sdetails
#50.06 sdetails
#60.06 sdetails
#70.06 sdetails
#80.07 sdetails
#90.06 sdetails
#100.07 sdetails
#110.06 sdetails
#120.07 sdetails

Code

def c(n,q):
    if q < pow(2, n-1):
        return "The truth is out there"
    else:
        return " ".join(["1"]*(n-1) + [str(q - pow(2,n-1) + 1)])

n, q = map(int, input().split())

print(c(n,q))

Test details

Test 1

Verdict:

input
1

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 2

Verdict:

input
2

correct output
2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 3

Verdict:

input
3

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 4

Verdict:

input
5

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 5

Verdict:

input
33

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 6

Verdict:

input
12385719843

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 7

Verdict:

input
10935032

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 8

Verdict:

input
659023495928

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 9

Verdict:

input
913591235689

correct output
2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 10

Verdict:

input
999999911791

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 11

Verdict:

input
1000000000000

correct output
2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)

Test 12

Verdict:

input
999999999998

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 7, in <module>
    n, q = map(int, input().split())
ValueError: not enough values to unpack (expected 2, got 1)