Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include <cstdio>
int main(){int n; scanf("%d", &n);printf("%d\n", 3 * n / 2);return 0;}
Copy The Code &
Try With Live Editor
Input
2
Output
3
Demonstration
Codeforces Solution-A. Toy Army-Solution in C, C++, Java, Python