Submission #75449763


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int main() {
    int onefour = 0;
    int onefive = 0;
    int onesix = 0;
    int twofour = 0;
    int twofive = 0;
    int twosix = 0;
    int threefour = 0;
    int threefive = 0;
    int threesix = 0;


    vector<int> diceone(6);
    for(int i = 0; i < 6; i++){
        cin >> diceone.at(i);
    }
    for(int i = 0; i < 6; i++){
        if (diceone[i] == 4){
            onefour++;
        }
        else if (diceone[i] == 5){
            onefive++;
        }
        else if (diceone[i] == 6){
            onesix++;
        }
    }

    vector<int> dicetwo(6);
    for(int i = 0; i < 6; i++){
        cin >> dicetwo.at(i);
    }


    for(int i = 0; i < 6; i++){
        if (dicetwo[i] == 4){
            twofour++;
        }
        else if (dicetwo[i] == 5){
            twofive++;
        }
        else if (dicetwo[i] == 6){
            twosix++;
        }
    }


    vector<int> dicethree(6);
    for(int i = 0; i < 6; i++){
        cin >> dicethree.at(i);
    }


    for(int i = 0; i < 6; i++){
        if (dicethree[i] == 4){
            threefour++;
        }
        else if (dicethree[i] == 5){
            threefive++;
        }
        else if (dicethree[i] == 6){
            threesix++;
        }
    }
    onefour /= 6;
    onefive /= 6;
    onesix /= 6;
    twofour /= 6;
    twofive /= 6;
    twosix /= 6;
    threefour /= 6;
    threefive /= 6;
    threesix /= 6;


    int answerone = (onefour * twofive * threesix);
    int answertwo = (onefour * twosix * threesix);
    int answerthree = (onefive * twofour *threesix);
    int answerfour = (onefive * twosix * threefour);
    int answerfive = (onesix * twofour * threefive);
    int answersix = (onesix * twofive * threefour);
    int realanswer = answerone + answertwo + answerthree + answerfour + answerfive + answersix;
    cout << realanswer << endl;
}

Submission Info

Submission Time
Task B - 456
User Renntann0108
Language C++23 (Clang 21.1.0)
Score 0
Code Size 1971 Byte
Status WA
Exec Time 1 ms
Memory 2972 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
WA × 2
AC × 2
WA × 12
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt WA 1 ms 2904 KiB
random_02.txt WA 1 ms 2908 KiB
random_03.txt WA 1 ms 2748 KiB
random_04.txt WA 1 ms 2868 KiB
random_05.txt WA 1 ms 2972 KiB
random_06.txt WA 1 ms 2748 KiB
random_07.txt WA 1 ms 2840 KiB
random_08.txt WA 1 ms 2748 KiB
random_09.txt WA 1 ms 2972 KiB
random_10.txt WA 1 ms 2840 KiB
random_11.txt AC 1 ms 2868 KiB
random_12.txt AC 1 ms 2840 KiB
sample_01.txt WA 1 ms 2840 KiB
sample_02.txt WA 1 ms 2928 KiB