Submission #2847

#TimeUsernameProblemLanguageResultExecution timeMemory
2847ansol4328개미 (GA4_ant)C++98
100 / 100
60 ms1088 KiB
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { int n, i; long long a, b, c; scanf("%d",&n); for(i=1 ; i<=n ; i++) { scanf("%lld %lld %lld",&a,&b,&c); if(a>b) a^=b^=a^=b; if(b>c) b^=c^=b^=c; if(a>c) a^=c^=a^=c; printf("%lld\n",(a+b)*(a+b)+c*c); } return 0; }
#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...