/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 320.0 KiB
#2 Wrong Answer 28ms 560.0 KiB
#3 Wrong Answer 28ms 552.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-11 02:31:43
Judged By
Score
10
Total Time
28ms
Peak Memory
560.0 KiB