fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin >> t;
  7. while (t) {
  8. t--;
  9. long long n;
  10. cin >> n;
  11. cout << (n / 2) * 3 + 1 << '\n';
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Standard output is empty