Submission #741481

#TimeUsernameProblemLanguageResultExecution timeMemory
741481rahidilbayramli개미 (GA4_ant)C++17
100 / 100
220 ms3212 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...