Submission #2327

#TimeUsernameProblemLanguageResultExecution timeMemory
2327rbwhddl2000개미 (GA4_ant)C++98
100 / 100
65 ms884 KiB
#include<stdio.h> int main() { int n, i; long long mini=99999999999, k, a, b, c; scanf("%d", &n); for(i=1;i<=n;i++){ mini = 99999999999; scanf("%lld %lld %lld", &a, &b, &c); if(a*b<mini)mini=a*b; if(b*c<mini)mini=b*c; if(c*a<mini)mini=c*a; k = a*a + b*b + c*c + 2 * mini; printf("%lld\n", k); } 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...