Codeforces 1047A. Little C Loves 3 I Solution
Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE,23rd batch
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main()
- {
- int n,r1,r2;
- cin>>n;
- if(n%3==0)
- cout<<"1 "<<"1 "<<n-2<<endl;
- else
- cout<<"1 "<<"2 "<<n-3<<endl;
- }
No comments