/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 26ms 344.0 KiB
#3 Wrong Answer 27ms 548.0 KiB

Code

#include <iostream>
#include <bits/stdc++.h>
/*#define int long long int*/
using namespace std;
int main()
{
    int t,a,b,c,k,i;
    cin >> t;

    while(t--)
    {
            cin >> a >> b >> c;


        if(a==b && b==c && a==c)
        {
            cout << 0 << endl;
        }

        else if(a==b && a!=c && b!=c)
        {
            cout << 1 << endl;
        }

        else
        {
            cout << 2 << endl;
        }
    }

}

Information

Submit By
Type
Submission
Problem
P1061 Bring equality
Language
C++17 (G++ 13.2.0)
Submit At
2024-11-05 15:02:34
Judged At
2024-11-05 15:02:34
Judged By
Score
10
Total Time
27ms
Peak Memory
548.0 KiB