# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2272 |
2013-07-21T00:53:40 Z |
ldj5098 |
개미 (GA4_ant) |
C++ |
|
167 ms |
5280 KB |
#include<iostream>
#include<stdio.h>
int d[1000001];
using namespace std;
int main()
{
int i, j, a, b, c, t, f;
long long n;
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 time |
Memory |
Grader output |
1 |
Incorrect |
93 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
106 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
123 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
143 ms |
5280 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
142 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
167 ms |
5280 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |