Wrong Answer
Code
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
int t;
cin >> t;
while (t--){
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
int ans = 0;
if (a[0] != a[1] && a[1] == a[2]) ans = 1;
else if (a[0] == a[1] && a[1] != a[2]) ans = 1;
else if (a[0] == a[2] && a[1] != a[2]) ans = 1;
else if (a[0] != a[1] && a[1] != a[2]) ans = 2;
cout << ans << endl;
}
}
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:38:53
- Judged At
- 2024-11-11 03:25:42
- Judged By
- Score
- 10
- Total Time
- 30ms
- Peak Memory
- 556.0 KiB