Submission #4969

# Submission time Handle Problem Language Result Execution time Memory
4969 2014-01-23T16:22:50 Z lingxiang 개미 (GA4_ant) C++
0 / 100
56 ms 1088 KB
#include<stdio.h>

int main()
{
  long long int a,b,c;
  int T;
  scanf("%d",&T);
  for(int i=0;i<T;i++){
  scanf("%lld %lld %lld",&a,&b,&c);
  if(a>b) a^=b^=a^=b;
  if(b>c) b^=c^=b^=c;
  printf("%lld",(long long int)(a+b)*(a+b)+c*c);
  }
  return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 56 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 56 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -