Wrong Answer
Code
#include <stdio.h>
int main() {
int n;
printf("Enter the number of chocolates : ");
scanf("%d", &n);
int count_ways(int n) {
int ways = 0;
for (int i = 1; i <= n; i++) {
if (n % i == 0) {
ways++;
}
}
return ways;
}
printf("Pritom can distribute chocolates in %d different ways.\n", count_ways(n));
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1037 Generous CR
- Contest
- Brain booster #2
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-03-06 14:16:36
- Judged At
- 2024-11-11 03:42:02
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 304.0 KiB