jakaria_hossain

codeforces - magical sticks

Jul 1st, 2020
1,140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define fast()(ios_base::sync_with_stdio(0),cin.tie(NULL));
  5. #define eb emplace_back
  6. #define pi pair<ll,ll>
  7. #define mp make_pair
  8. int main()
  9. {
  10.     ll t;
  11.     cin>>t;
  12.     while(t--)
  13.     {
  14.         ll n;
  15.         cin>>n;
  16.  
  17.         cout<<n-(n/2)<<endl;
  18.     }
  19. }
RAW Paste Data