Skip to content

Commit 5236efe

Browse files
authored
Maximum GCD
1 parent 9acf414 commit 5236efe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Greedy/(CODEFORCES)1370A.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
int main() {
5+
int t,a;
6+
cin>>t;
7+
while(t--){
8+
cin>>a;
9+
cout<<a/2<<endl;
10+
}
11+
return 0;
12+
}

0 commit comments

Comments
 (0)