Codeforces 1370A. Maximum GCD Solution
Solution in C++:
///**********ALLAH IS ALMIGHTY************///
///AH Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
///**********ALLAH IS ALMIGHTY************///
///AH Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t,n;
- cin>>t;
- while(t--)
- {
- cin>>n;
- cout<<n/2<<endl;
- }
- }
No comments