Wrong Answer
Code
#include<stdio.h>
int main(){
int n,k,s;
s=1,k=3;
scanf("%d",&n);
for(int i=1; i<n; i++){
s=s+k;
k=k+2;
}
printf("%d",s);
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1231 Busy Friend
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-09-01 05:46:34
- Judged At
- 2025-09-01 05:46:34
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 284.0 KiB