# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2475 |
2013-07-22T11:13:22 Z |
huhubum |
개미 (GA4_ant) |
C++ |
|
0 ms |
876 KB |
#include <fstream>
using namespace std;
FILE *fin = fopen("input.txt","r");
FILE *fout = fopen("output.txt","w");
int main()
{
int i, j, k, n;
long long int sum1;
fscanf(fin,"%d",&n);
for(i=1;i<=n;i++)
{
fscanf(fin,"%d %d %d",&i, &j, &k);
sum1 = (i + j) * (i + j) + k * k;
//fprintf(fout,"sum1 = (%d + %d) ^ 2 + %d ^ 2 = %d\n",i, j, k, sum1);
fprintf(fout,"%lld",sum1);
}
fclose(fin);
fclose(fout);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
876 KB |
SIGSEGV Segmentation fault |
2 |
Halted |
0 ms |
0 KB |
- |