Loading...
Submission
# When Author Problem Language CPU Memory
4478 2022-03-25 20:19:58 The_crawler Age of Bangladesh C++ 17 3 ms 3524 kb Accepted
Test Cases
# CPU Memory Points
1 2 ms 3292 kb 1 Accepted
2 2 ms 3380 kb 1 Accepted
3 2 ms 3336 kb 1 Accepted
4 2 ms 3312 kb 1 Accepted
5 2 ms 3288 kb 1 Accepted
6 2 ms 3348 kb 1 Accepted
7 2 ms 3284 kb 1 Accepted
8 3 ms 3436 kb 1 Accepted
9 2 ms 3524 kb 1 Accepted
Source Code
  1. /* Author: Tazim(The_crawler) */
  2. #include<bits/stdc++.h>
  3. #define ll long long int
  4. #define dec greater<int>()
  5. #define lower(s) transform(s.begin(), s.end(), s.begin(), ::tolower);
  6. #define upper(s) transform(s.begin(), s.end(), s.begin(), ::toupper);
  7. #define prow(n) for(auto i:n)cout<<i<<" ";cout<<endl;
  8. #define pcol(n) for(auto i:n)cout<<i<<endl;
  9. #define yes cout<<"YES"<<endl;
  10. #define no cout<<"NO"<<endl;
  11. #define debug(x) cout<<#x<<" = ";_print(x); cout<<endl; /// Debug function
  12. using namespace std; ///****
  13. bool sortbysec(const pair<int, int>& a, const pair<int, int>& b) { return (a.second < b.second); }
  14. template<class T> void _print(T x) { cout << x; }
  15. template<class T> void _print(vector<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; }
  16. template<class T> void _print(set<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; }
  17. template<class T, class V> void _print(pair<T, V>x) { cout << "{" << x.first << "," << x.second << "} "; }
  18. template<class T, class V> void _print(map<T, V>x) { cout << "[ ";for (auto i : x)_print(i);cout << "]"; }
  19. template<class T> void _print(multiset<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; }
  20. /* Hack my code. It's Easy to Read */
  21.  
  22. bool isprime(int n) {
  23. if (n < 2)return 0;
  24. if (n == 2)return 1;
  25. for (int i = 2; i * i <= n; i++) {
  26. if (n % i == 0)return 0;
  27. }
  28. return 1;
  29. }
  30.  
  31. int main() {
  32. ios_base::sync_with_stdio(false);
  33. cin.tie(NULL);
  34. // start
  35. int n;
  36. cin >> n;
  37. cout << n - 1971 << endl;
  38.  
  39.  
  40.  
  41. return 0;
  42. }
  43.