# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2268 |
2013-07-21T00:46:44 Z |
ldj5098 |
개미 (GA4_ant) |
C++ |
|
168 ms |
5280 KB |
#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 time |
Memory |
Grader output |
1 |
Incorrect |
98 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
109 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
122 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
136 ms |
5280 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
154 ms |
5280 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
168 ms |
5280 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |