/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 4ms 796.0 KiB
#3 Wrong Answer 4ms 808.0 KiB
#4 Wrong Answer 4ms 576.0 KiB
#5 Wrong Answer 4ms 580.0 KiB
#6 Accepted 4ms 572.0 KiB
#7 Accepted 4ms 532.0 KiB
#8 Accepted 4ms 764.0 KiB
#9 Wrong Answer 4ms 580.0 KiB
#10 Wrong Answer 4ms 576.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define endl '\n'

int32_t main()
{   
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    
    int t; cin >> t;
    while(t--) {
        int a,b,c; cin >> a >> b >> c;
        if (a == b and b == c) cout << 0 << endl;
        else if(a == b and b != c) cout << 1 << endl;
        else if (b == c and c != a) cout << 1 << endl;
        else if (a == c and a != b) cout << 1 << endl;
        else cout << 2 << endl;
    
    }
    
    return 0;
} 

Information

Submit By
Type
Submission
Problem
P1061 Bring equality
Contest
Brain Booster #4
Language
C++20 (G++ 13.2.0)
Submit At
2024-07-14 15:52:01
Judged At
2024-10-03 13:39:05
Judged By
Score
40
Total Time
4ms
Peak Memory
808.0 KiB