Accepted
Code
#include <stdio.h>
int main()
{
int x, i, c;
scanf("%d", &x);
x = x - 2;
c = 2;
for(i=1; i<=x; i++){
c = c+2;
}
c = c + 1;
printf("%d\n", c);
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1176 Free chocolate
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-02-26 06:34:13
- Judged At
- 2025-02-26 06:34:13
- Judged By
- Score
- 100
- Total Time
- 0ms
- Peak Memory
- 404.0 KiB