/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 4ms 532.0 KiB
#3 Wrong Answer 4ms 576.0 KiB

Code

 #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
#ifdef LOCAL
#include "algo/debug.h"
#else
#define debug(...) 42
#endif
const double PI = acos(-1);
const ll MOD = 998244353;

void solve()
{
    // cout << fixed << setprecision(2);
    ll a,b,c;
    cin>>a>>b>>c;
    if(a==b && b==c) {
        cout<<0<<endl;
    }
    else if(a!=b && b!=c){
        cout<<2<<endl;
    }
    else if((a==b && b!=c) || (b==c && c!=a) || (c==a && a!=b)){
        cout<<1<<endl;
    }

}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    ll tstcs;
    cin >> tstcs;
    for (int t = 1; t <= tstcs; t++)
    {
        // cout << "Case " << t << ": ";
        solve();
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1061 Bring equality
Language
C++17 (G++ 13.2.0)
Submit At
2025-07-13 14:57:18
Judged At
2025-07-13 14:57:18
Judged By
Score
10
Total Time
4ms
Peak Memory
576.0 KiB