Submission #2396

# Submission time Handle Problem Language Result Execution time Memory
2396 2013-07-21T06:20:19 Z alephnull 개미 (GA4_ant) C++
46 / 100
61 ms 884 KB
#include <cstdio>
#include <algorithm>
using namespace std;

int main() {
	long long a, b, c;
	int t;
	scanf("%d", &t);
	for (int i = 0; i < t; i++) {
		scanf("%lld %lld %lld", &a, &b, &c);
		printf("%lld\n",c * c + (a + b) * (a + b));
	}
}
# Verdict Execution time Memory Grader output
1 Correct 44 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 51 ms 884 KB Output is correct
2 Correct 51 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 47 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 61 ms 884 KB Output is correct
2 Incorrect 61 ms 884 KB Output isn't correct
3 Halted 0 ms 0 KB -