Advertisement
MohamedAbdel3al

Untitled

Apr 24th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.89 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define cin(vec) for(auto& i : vec) cin >> i
  6. #define cin_2d(vec, n, m) for(int i = 0; i < n; i++) for(int j = 0; j < m && cin >> vec[i][j]; j++);
  7. #define cout(vec) for(auto& i : vec) cout << i << " "; cout << "\n";
  8. #define cout_2d(vec, n, m) for(int i = 0; i < n; i++, cout << "\n") for(int j = 0; j < m && cout << vec[i][j] << " "; j++);
  9. #define cout_map(mp) for(auto& [f, s] : mp) cout << f << "  " << s << "\n";
  10. #define Time cerr << "Time Taken: " << (float)clock() / CLOCKS_PER_SEC << " Secs" << "\n";
  11. #define fixed(n) fixed << setprecision(n)
  12. //#define ceil(n, m) (((n) / (m)) + ((n) % (m) ? 1 : 0))
  13. #define Num_of_Digits(n) ((int)log10(n)+1)
  14. #define all(vec) vec.begin(),vec.end()
  15. #define sz(x) int(x.size())
  16. #define TC int t; cin >> t;   while(t--)
  17. #define fi first
  18. #define se second
  19. #define Pair pair < int, int >
  20. #define ll long long
  21. #define ull unsigned long long
  22. #define Mod  1'000'000'007
  23. #define OO 2'000'000'000
  24. #define EPS 1e-9
  25. #define PI acos(-1)
  26. #define imin INT_MIN
  27. #define imax INT_MAX
  28. #define getline(s) getline(cin >> ws , s)
  29. #define pb(x) push_back(x)
  30. #define to_decimal(bin) stoi(bin, nullptr, 2)
  31. #define mod_combine(a, b, m) (((a % m) * (b % m)) % m)
  32. #define debug(x) cout << #x << ": " << (x) << "\n";
  33.  
  34.  
  35. void Code_Crush(){
  36.     ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  37. #ifndef ONLINE_JUDGE
  38.     freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);  
  39. #endif
  40.     Time
  41.     /* MohamedAbdEl3al ♥️🥇♥️ */
  42. }
  43.  
  44. void Solve (){  
  45.     ll n, s;
  46.     cin >> n >> s;
  47.     vector < int > nums(n);
  48.     for(auto& i : nums) cin >> i;
  49.     int i = 0, j = 0, ans = 0, sum = 0;
  50.     while(i < n && j < n){
  51.        
  52.     }    
  53.     cout << ans;
  54. }
  55.  
  56. int main (){
  57.     Code_Crush();
  58.     int t = 1;
  59.     //cin >> t;
  60.     while(t--){
  61.         Solve();
  62.     }
  63.     return 0;
  64. }  
  65.  
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement