Submission #7833

# Submission time Handle Problem Language Result Execution time Memory
7833 2014-08-19T10:56:05 Z gs13068 개미 (GA4_ant) C++
100 / 100
60 ms 1088 KB
#include<cstdio>

int main()
{
  int tcn;
  scanf("%d",&tcn);
  while(tcn--)
  {
    long long a,b,c;
    scanf("%lld%lld%lld",&a,&b,&c);
    if(a>b)a^=b^=a^=b;
    if(b>c)b^=c^=b^=c;
    printf("%lld\n",(a+b)*(a+b)+c*c);
  }
}
# Verdict Execution time Memory Grader output
1 Correct 44 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 40 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 48 ms 1088 KB Output is correct
2 Correct 40 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 56 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 1088 KB Output is correct
2 Correct 56 ms 1088 KB Output is correct
3 Correct 52 ms 1088 KB Output is correct
4 Correct 52 ms 1088 KB Output is correct
5 Correct 60 ms 1088 KB Output is correct