Submission details
Task:Dice Combinations
Sender:aalto26ch_017
Submission time:2026-09-12 18:22:42 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.05 sdetails
#140.07 sdetails
#150.09 sdetails
#160.09 sdetails
#170.09 sdetails
#180.04 sdetails
#190.09 sdetails
#200.04 sdetails

Code

n = int(input())

sums = [0] * (n + 1)

# 0 = 1
# 1 
# 1 = 1
# 1
# 2 = 1 + 1, 2
# 2
# 3 = 1 + 1 + 1, 1 + 2, 2 + 1, 3
# 4
# 4: 1 + 1 + 2 + 4

for i in range(1, n + 1):
    for j in range(1, 7):
        if i - j >= 0:
            sums[i] = (sums[i] + sums[i - j])

print(sums[n])

Test details

Test 1

Verdict:

input
1

correct output
1

user output
0

Feedback: Incorrect character on line 1 col 1: expected "1", got "0"

Test 2

Verdict:

input
2

correct output
2

user output
0

Feedback: Incorrect character on line 1 col 1: expected "2", got "0"

Test 3

Verdict:

input
3

correct output
4

user output
0

Feedback: Incorrect character on line 1 col 1: expected "4", got "0"

Test 4

Verdict:

input
4

correct output
8

user output
0

Feedback: Incorrect character on line 1 col 1: expected "8", got "0"

Test 5

Verdict:

input
5

correct output
16

user output
0

Feedback: Incorrect character on line 1 col 1: expected "16", got "0"

Test 6

Verdict:

input
6

correct output
32

user output
0

Feedback: Incorrect character on line 1 col 1: expected "32", got "0"

Test 7

Verdict:

input
7

correct output
63

user output
0

Feedback: Incorrect character on line 1 col 1: expected "63", got "0"

Test 8

Verdict:

input
8

correct output
125

user output
0

Feedback: Incorrect character on line 1 col 1: expected "125", got "0"

Test 9

Verdict:

input
9

correct output
248

user output
0

Feedback: Incorrect character on line 1 col 1: expected "248", got "0"

Test 10

Verdict:

input
10

correct output
492

user output
0

Feedback: Incorrect character on line 1 col 1: expected "492", got "0"

Test 11

Verdict:

input
50

correct output
660641036

user output
0

Feedback: Incorrect character on line 1 col 1: expected "660641036", got "0"

Test 12

Verdict:

input
1000

correct output
937196411

user output
0

Feedback: Incorrect character on line 1 col 1: expected "937196411", got "0"

Test 13

Verdict:

input
123456

correct output
113810539

user output
0

Feedback: Incorrect character on line 1 col 1: expected "113810539", got "0"

Test 14

Verdict:

input
654321

correct output
615247550

user output
0

Feedback: Incorrect character on line 1 col 1: expected "615247550", got "0"

Test 15

Verdict:

input
999998

correct output
39372206

user output
0

Feedback: Incorrect character on line 1 col 1: expected "39372206", got "0"

Test 16

Verdict:

input
999999

correct output
511319454

user output
0

Feedback: Incorrect character on line 1 col 1: expected "511319454", got "0"

Test 17

Verdict:

input
1000000

correct output
874273980

user output
0

Feedback: Incorrect character on line 1 col 1: expected "874273980", got "0"

Test 18

Verdict:

input
1001

correct output
94201505

user output
0

Feedback: Incorrect character on line 1 col 1: expected "94201505", got "0"

Test 19

Verdict:

input
999997

correct output
74225807

user output
0

Feedback: Incorrect character on line 1 col 1: expected "74225807", got "0"

Test 20

Verdict:

input
40

correct output
567401756

user output
0

Feedback: Incorrect character on line 1 col 1: expected "567401756", got "0"