1370A - Maximum Gcd

Click to show code.


using namespace std;
int main(void)
{
    int t, n;
    cin >> t;
    while (t--)
    {
        cin >> n;
        cout << (n / 2) << endl;
    }
    return 0;
}