# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
741481 |
2023-05-14T08:07:51 Z |
rahidilbayramli |
개미 (GA4_ant) |
C++17 |
|
220 ms |
3212 KB |
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define pb push_back
#define vl vector<ll>
#define sl set<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define all(v) v.begin(), v.end()
using namespace std;
int main()
{
ll t;
cin >> t;
while(t--){
ll a, b, c, x, y, z;
cin >> a >> b >> c;
x = min({a, b, c});
y = max({a, b, c});
z = a + b + c - x - y;
cout << (x + z) * (x + z) + y * y << "\n";
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
220 ms |
1888 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
176 ms |
2276 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
194 ms |
2320 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
202 ms |
2712 KB |
Output is correct |
2 |
Correct |
193 ms |
2804 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
220 ms |
2660 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
215 ms |
3152 KB |
Output is correct |
2 |
Correct |
207 ms |
3052 KB |
Output is correct |
3 |
Correct |
205 ms |
3156 KB |
Output is correct |
4 |
Correct |
208 ms |
3076 KB |
Output is correct |
5 |
Correct |
204 ms |
3212 KB |
Output is correct |