My issue
can anyone help me in this question.I am not able to understand the problem, please.
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
// int t;
// cin>>t;
// while(t--)
long n;
while(cin>>n){
if(n>=12)
{
cout<<n/2+n/3+n/4<<endl;
}
else
cout<<n<<endl;
}
return 0;
}
Problem Link: COINS Problem - CodeChef