191422025-11-26 12:52:38dfehervariKépkeretekcpp17Accepted 100/1001ms508 KiB
// NOTE: it is recommended to use this even if you don't understand the following code.


#include <iostream>



using namespace std;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int A,B,C;
    cin >> A;
    cin >> B;
    cin >> C;

    int K = 0;


    // INSERT YOUR CODE HERE
    if((A==B) and (B==C)) K=1;
    else if(A==B or A==C or B==C) K=3;
    else K=6;


    cout << K << endl;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms316 KiB
subtask210/10
2Accepted1ms316 KiB
3Accepted1ms316 KiB
subtask330/30
4Accepted1ms500 KiB
5Accepted1ms316 KiB
6Accepted1ms316 KiB
7Accepted1ms316 KiB
8Accepted1ms316 KiB
subtask460/60
9Accepted1ms316 KiB
10Accepted1ms316 KiB
11Accepted1ms316 KiB
12Accepted1ms500 KiB
13Accepted1ms316 KiB
14Accepted1ms316 KiB
15Accepted1ms316 KiB
16Accepted1ms316 KiB
17Accepted1ms316 KiB
18Accepted1ms316 KiB
19Accepted1ms328 KiB
20Accepted1ms508 KiB
21Accepted1ms316 KiB
22Accepted1ms316 KiB