/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 536.0 KiB
#2 Wrong Answer 4ms 580.0 KiB
#3 Wrong Answer 4ms 572.0 KiB

Code

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

namespace solve {
    namespace test_case {
        void main() {
            int a, b, c, k;
            cin >> a >> b >> c;
            if (a == b && b == c ) {
              cout << 0 << '\n';
            } else if (a != b && b != c && a != c){
              cout << 2 << '\n';
            } else cout << 1 << '\n';
        }
    }

    void main() {
        ios::sync_with_stdio(false);
        cin.tie(nullptr);
        int t; 
        cin >> t; 
        while (t--) {
            test_case::main();
        }
    }
}

signed main() {
    solve::main();
}

Information

Submit By
Type
Submission
Problem
P1061 Bring equality
Contest
Brain Booster #4
Language
C++17 (G++ 13.2.0)
Submit At
2024-07-14 15:52:04
Judged At
2024-11-11 03:25:19
Judged By
Score
10
Total Time
4ms
Peak Memory
580.0 KiB