Submission #2475

#TimeUsernameProblemLanguageResultExecution timeMemory
2475huhubum개미 (GA4_ant)C++98
0 / 100
0 ms876 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...