Submission #2268

#TimeUsernameProblemLanguageResultExecution timeMemory
2268ldj5098개미 (GA4_ant)C++98
0 / 100
168 ms5280 KiB
#include<iostream> #include<stdio.h> int d[1000001]; using namespace std; int main() { int n, i, j, a, b, c, t, f; cin >> n; for(i=1;i<=n;i++){ cin >> a >> b >> c; d[1]=a*a; d[2]=b*b; d[3]=c*c; t=d[1]+d[2]+d[3]; for(j=1;j<=3;j++){ if(d[j]>d[j+1])d[j+1]=d[j]; } f=d[3]; for(j=2;j>=1;j--){ f=f-d[j]; } } cout << f+t << endl; 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...