| Task: | Dice Combinations |
| Sender: | aalto26ch_014 |
| Submission time: | 2026-09-13 23:21:29 +0300 |
| Language: | C++ (C++20) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.00 s | details |
| #2 | WRONG ANSWER | 0.00 s | details |
| #3 | WRONG ANSWER | 0.00 s | details |
| #4 | WRONG ANSWER | 0.00 s | details |
| #5 | WRONG ANSWER | 0.00 s | details |
| #6 | WRONG ANSWER | 0.00 s | details |
| #7 | WRONG ANSWER | 0.00 s | details |
| #8 | WRONG ANSWER | 0.00 s | details |
| #9 | WRONG ANSWER | 0.00 s | details |
| #10 | WRONG ANSWER | 0.00 s | details |
| #11 | WRONG ANSWER | 0.00 s | details |
| #12 | WRONG ANSWER | 0.00 s | details |
| #13 | RUNTIME ERROR | 0.01 s | details |
| #14 | RUNTIME ERROR | 0.01 s | details |
| #15 | RUNTIME ERROR | 0.01 s | details |
| #16 | RUNTIME ERROR | 0.01 s | details |
| #17 | RUNTIME ERROR | 0.01 s | details |
| #18 | WRONG ANSWER | 0.00 s | details |
| #19 | RUNTIME ERROR | 0.01 s | details |
| #20 | WRONG ANSWER | 0.00 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:15:26: warning: value computed is not used [-Wunused-value] 15 | count[i] % (1000000000 + 7);
Code
#include <iostream>
#include <vector>
#include <stdint.h>
using namespace std;
int main(){
uint64_t n;
cin >> n;
vector<uint64_t> count(n + 1);
count[0] = 1;
for (uint64_t i = 1; i <= n; i++){
for(uint64_t j = 1; j < 6; j++){
if (i-j >= 0){
count[i] += count[i - j];
count[i] % (1000000000 + 7);
}
}
}
if (n != 0)
{
cout << count[n];
}
else
{
cout << 0;
}
}Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 1 |
| correct output |
|---|
| 1 |
| user output |
|---|
| 34 |
Feedback: Incorrect character on line 1 col 1: expected "1", got "34"
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 2 |
| correct output |
|---|
| 2 |
| user output |
|---|
| 68 |
Feedback: Incorrect character on line 1 col 1: expected "2", got "68"
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 3 |
| correct output |
|---|
| 4 |
| user output |
|---|
| 200 |
Feedback: Incorrect character on line 1 col 1: expected "4", got "200"
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 4 |
| correct output |
|---|
| 8 |
| user output |
|---|
| 400 |
Feedback: Incorrect character on line 1 col 1: expected "8", got "400"
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 5 |
| correct output |
|---|
| 16 |
| user output |
|---|
| 991 |
Feedback: Incorrect character on line 1 col 1: expected "16", got "991"
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 6 |
| correct output |
|---|
| 32 |
| user output |
|---|
| 1981 |
Feedback: Incorrect character on line 1 col 1: expected "32", got "1981"
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 7 |
| correct output |
|---|
| 63 |
| user output |
|---|
| 4840 |
Feedback: Incorrect character on line 1 col 1: expected "63", got "4840"
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 8 |
| correct output |
|---|
| 125 |
| user output |
|---|
| 9516 |
Feedback: Incorrect character on line 1 col 1: expected "125", got "9516"
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 9 |
| correct output |
|---|
| 248 |
| user output |
|---|
| 22352 |
Feedback: Incorrect character on line 1 col 2: expected "248", got "22352"
Test 10
Verdict: WRONG ANSWER
| input |
|---|
| 10 |
| correct output |
|---|
| 492 |
| user output |
|---|
| 43920 |
Feedback: Incorrect character on line 1 col 2: expected "492", got "43920"
Test 11
Verdict: WRONG ANSWER
| input |
|---|
| 50 |
| correct output |
|---|
| 660641036 |
| user output |
|---|
| 103631867668413620 |
Feedback: Incorrect character on line 1 col 1: expected "660641036", got "103631867668..."
Test 12
Verdict: WRONG ANSWER
| input |
|---|
| 1000 |
| correct output |
|---|
| 937196411 |
| user output |
|---|
| 3733087628706918688 |
Feedback: Incorrect character on line 1 col 1: expected "937196411", got "373308762870..."
Test 13
Verdict: RUNTIME ERROR
| input |
|---|
| 123456 |
| correct output |
|---|
| 113810539 |
| user output |
|---|
| (empty) |
Test 14
Verdict: RUNTIME ERROR
| input |
|---|
| 654321 |
| correct output |
|---|
| 615247550 |
| user output |
|---|
| (empty) |
Test 15
Verdict: RUNTIME ERROR
| input |
|---|
| 999998 |
| correct output |
|---|
| 39372206 |
| user output |
|---|
| (empty) |
Test 16
Verdict: RUNTIME ERROR
| input |
|---|
| 999999 |
| correct output |
|---|
| 511319454 |
| user output |
|---|
| (empty) |
Test 17
Verdict: RUNTIME ERROR
| input |
|---|
| 1000000 |
| correct output |
|---|
| 874273980 |
| user output |
|---|
| (empty) |
Test 18
Verdict: WRONG ANSWER
| input |
|---|
| 1001 |
| correct output |
|---|
| 94201505 |
| user output |
|---|
| 11207696247423608543 |
Feedback: Incorrect character on line 1 col 1: expected "94201505", got "112076962474..."
Test 19
Verdict: RUNTIME ERROR
| input |
|---|
| 999997 |
| correct output |
|---|
| 74225807 |
| user output |
|---|
| (empty) |
Test 20
Verdict: WRONG ANSWER
| input |
|---|
| 40 |
| correct output |
|---|
| 567401756 |
| user output |
|---|
| 97167633326752 |
Feedback: Incorrect character on line 1 col 1: expected "567401756", got "97167633326752"
