Untitled

 avatar
unknown
plain_text
a year ago
402 B
0
Indexable
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
typedef long long ll;
typedef string::size_type sz;

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--)
  {
    int n;
    cin >> n;
    int x = n / 2020;
    if (n % 2020 <= x)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return EXIT_SUCCESS;
}
Leave a Comment