fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define int long long
  4. void sol(){
  5. int n, k;
  6. cin >> n ;
  7. cout << 2 * n + 1 << endl;
  8. }
  9. signed main(){
  10. ios_base::sync_with_stdio(false);
  11. cin.tie(NULL);
  12. cout.tie(NULL);
  13. int t = 1;
  14. cin >> t;
  15. while(t--){
  16. sol();
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
1