| Task: | Dice Combinations |
| Sender: | aalto26ch_006 |
| Submission time: | 2026-09-12 17:01:15 +0300 |
| Language: | C |
| 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 | WRONG ANSWER | 0.01 s | details |
| #14 | WRONG ANSWER | 0.03 s | details |
| #15 | WRONG ANSWER | 0.04 s | details |
| #16 | WRONG ANSWER | 0.04 s | details |
| #17 | WRONG ANSWER | 0.04 s | details |
| #18 | WRONG ANSWER | 0.00 s | details |
| #19 | WRONG ANSWER | 0.04 s | details |
| #20 | WRONG ANSWER | 0.00 s | details |
Compiler report
input/code.c: In function 'main':
input/code.c:8:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~Code
#include <stdio.h>
#include <math.h>
const int N = pow(10,9)+7;
int main() {
int n;
scanf("%d", &n);
int count[n+1];
count[0] = 1;
for (int x=1; x<n+1; x++) {
for (int k=1; k<=6; k++) {
if (x-k >= 0) {
count[x] += count[x-k];
count[x] %= N;
}
}
}
printf("%d",count[n]);
}Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 1 |
| correct output |
|---|
| 1 |
| user output |
|---|
| 32768 |
Feedback: Incorrect character on line 1 col 1: expected "1", got "32768"
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 2 |
| correct output |
|---|
| 2 |
| user output |
|---|
| 431687371 |
Feedback: Incorrect character on line 1 col 1: expected "2", got "431687371"
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 3 |
| correct output |
|---|
| 4 |
| user output |
|---|
| 431741985 |
Feedback: Incorrect character on line 1 col 2: expected "4", got "431741985"
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 4 |
| correct output |
|---|
| 8 |
| user output |
|---|
| -5016 |
Feedback: Incorrect character on line 1 col 1: expected "8", got "-5016"
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 5 |
| correct output |
|---|
| 16 |
| user output |
|---|
| 27759 |
Feedback: Incorrect character on line 1 col 1: expected "16", got "27759"
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 6 |
| correct output |
|---|
| 32 |
| user output |
|---|
| 431677353 |
Feedback: Incorrect character on line 1 col 1: expected "32", got "431677353"
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 7 |
| correct output |
|---|
| 63 |
| user output |
|---|
| 431721948 |
Feedback: Incorrect character on line 1 col 1: expected "63", got "431721948"
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 8 |
| correct output |
|---|
| 125 |
| user output |
|---|
| -4899 |
Feedback: Incorrect character on line 1 col 1: expected "125", got "-4899"
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 9 |
| correct output |
|---|
| 248 |
| user output |
|---|
| 27991 |
Feedback: Incorrect character on line 1 col 2: expected "248", got "27991"
Test 10
Verdict: WRONG ANSWER
| input |
|---|
| 10 |
| correct output |
|---|
| 492 |
| user output |
|---|
| 431677813 |
Feedback: Incorrect character on line 1 col 2: expected "492", got "431677813"
Test 11
Verdict: WRONG ANSWER
| input |
|---|
| 50 |
| correct output |
|---|
| 660641036 |
| user output |
|---|
| 139118802 |
Feedback: Incorrect character on line 1 col 1: expected "660641036", got "139118802"
Test 12
Verdict: WRONG ANSWER
| input |
|---|
| 1000 |
| correct output |
|---|
| 937196411 |
| user output |
|---|
| 377341613 |
Feedback: Incorrect character on line 1 col 1: expected "937196411", got "377341613"
Test 13
Verdict: WRONG ANSWER
| input |
|---|
| 123456 |
| correct output |
|---|
| 113810539 |
| user output |
|---|
| 50650182 |
Feedback: Incorrect character on line 1 col 1: expected "113810539", got "50650182"
Test 14
Verdict: WRONG ANSWER
| input |
|---|
| 654321 |
| correct output |
|---|
| 615247550 |
| user output |
|---|
| 8710105 |
Feedback: Incorrect character on line 1 col 1: expected "615247550", got "8710105"
Test 15
Verdict: WRONG ANSWER
| input |
|---|
| 999998 |
| correct output |
|---|
| 39372206 |
| user output |
|---|
| 791862590 |
Feedback: Incorrect character on line 1 col 1: expected "39372206", got "791862590"
Test 16
Verdict: WRONG ANSWER
| input |
|---|
| 999999 |
| correct output |
|---|
| 511319454 |
| user output |
|---|
| 416236047 |
Feedback: Incorrect character on line 1 col 1: expected "511319454", got "416236047"
Test 17
Verdict: WRONG ANSWER
| input |
|---|
| 1000000 |
| correct output |
|---|
| 874273980 |
| user output |
|---|
| 644486884 |
Feedback: Incorrect character on line 1 col 1: expected "874273980", got "644486884"
Test 18
Verdict: WRONG ANSWER
| input |
|---|
| 1001 |
| correct output |
|---|
| 94201505 |
| user output |
|---|
| 997785179 |
Feedback: Incorrect character on line 1 col 2: expected "94201505", got "997785179"
Test 19
Verdict: WRONG ANSWER
| input |
|---|
| 999997 |
| correct output |
|---|
| 74225807 |
| user output |
|---|
| 104922137 |
Feedback: Incorrect character on line 1 col 1: expected "74225807", got "104922137"
Test 20
Verdict: WRONG ANSWER
| input |
|---|
| 40 |
| correct output |
|---|
| 567401756 |
| user output |
|---|
| 347157272 |
Feedback: Incorrect character on line 1 col 1: expected "567401756", got "347157272"
