Skip to content

Commit 0ae10fe

Browse files
committed
number theory problem
1 parent f00e298 commit 0ae10fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

B_New_Year_s_Number.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
////https://codeforces.com/contest/266/problem/A
2+
#include <bits/stdc++.h>
3+
using namespace std;
4+
typedef long long ll;
5+
const int mod = 1e9 + 7;
6+
const int N = 1e5 + 5;
7+
8+
void solve(){
9+
int n;
10+
cin>>n;
11+
if((n%2020)<=(n/2020)) {
12+
cout <<"YES" <<endl;
13+
}
14+
else cout <<"NO" <<endl;
15+
}
16+
17+
int main() {
18+
ios_base::sync_with_stdio(0);
19+
cin.tie(0);
20+
int t; cin >> t;
21+
while(t--){
22+
solve();
23+
}
24+
}

0 commit comments

Comments
 (0)