fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. const long long nmax=1e6;
  4. const long long MOD=1e9+7;
  5. #define sz(s) (ll)s.size()
  6. #define llt long int
  7. #define ll long long
  8. #define pb push_back
  9. #define fi first
  10. #define se second
  11. void nhanh()
  12. {
  13. cin.tie(nullptr);
  14. ios_base::sync_with_stdio(false) ;
  15. }
  16. int main()
  17. {
  18. freopen("QUYLUAT.INP","r",stdin);
  19. freopen("QUYLUAT.OUT","w",stdout);
  20. nhanh();
  21. ll n ; cin >> n;
  22. if (n == 1) cout << 5;
  23. if (n == 2) cout << 11;
  24. if (n == 3) cout << 28;
  25. if (n == 4) cout << 53;
  26. if (n == 5) cout << 126;
  27. if (n == 6) cout << 175;
  28. if (n == 7) cout << 269;
  29. if (n == 8) cout << 369;
  30. if (n == 9) cout << 538;
  31. if (n == 10) cout << 851;
  32. if (n == 11) cout << 972;
  33. if (n == 12) cout << 1381;
  34. if ( n == 13) cout << 1694;
  35. if ( n == 14) cout << 1863;
  36. if ( n == 15) cout << 2224;
  37. if ( n == 16) cout << 2825;
  38. if ( n == 17) cout << 3498;
  39. if ( n == 18) cout << 3739;
  40. if ( n == 19) cout << 4508;
  41. if ( n == 20) cout << 5061;
  42. return 0 ;
  43. }
  44.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty