191622025-11-27 15:25:46diakKépkeretekcpp17Wrong answer 10/1001ms500 KiB
// NOTE: it is recommended to use this even if you don't understand the following code.


#include <iostream>
#include <string>


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;
    cin >> A;

    int B;
    cin >> B;

    int C;
    cin >> C;

    int K = 0;


    if(A=B){
        if(B=C){
            K=1;
        }
        else{
            K=3;
        }
    }
    else{
      if(A=C){
        if(C=B){
            K=1;
        }
        else{
            K=3;
        }
      }
      else{
        if(B=C){
            if(C=A){
                K=1;
            }
            else{
                K=3;
            }
        }
        else{
            K=6;
        }
      }
    }

    cout << K << endl;

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