Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int t;
cin >> t;
while (t--)
{
int a, b, c;
cin >> a >> b >> c;
if (a == b && b == c)
{
cout << 0;
continue;
}
if (a == b || a == c || b == c)
{
cout << 1;
continue;
}
vector<int> x = {a, b, c};
sort(x.begin(), x.end());
int r = abs(x[0] - x[1]);
cout << x[2] / r << 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 16:11:39
- Judged At
- 2024-11-11 03:24:35
- Judged By
- Score
- 0
- Total Time
- 29ms
- Peak Memory
- 552.0 KiB