Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B'Polycarp remembered the 2020 -th year, and he is happy with the arrival of the new 2021 -th year. To remember such a wonderful moment, Polycarp wants to represent the number n as the sum of a certain number of 2020 and a certain number of 2021 . For example, if: Help Polycarp to find out whether the number n can be represented as the sum of a certain number of numbers 2020 and a certain number of numbers 2021 . The first line contains one integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Then t test cases follow. Each test case contains one integer n ( 1 <= q n <= q 10^6 ) -- the number that Polycarp wants to represent as the sum of the numbers 2020 and 2021 . For each test case, output on a separate line: You can output "YES" and "NO" in any case (for example, the strings yEs, yes, Yes and YES will be recognized as positive). '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
105424759 |
VN.Kiet |
B |
Jan. 25, 2021, 10:59 p.m. |
OK |
FPC |
TESTS |
2 |
46 |
0 |
|
|
105429084 |
Hieupc |
B |
Jan. 26, 2021, 1:26 a.m. |
OK |
FPC |
TESTS |
2 |
61 |
0 |
|
|
105417147 |
sabbir.sa2k |
B |
Jan. 25, 2021, 7:56 p.m. |
OK |
GNU C11 |
TESTS |
2 |
30 |
0 |
|
|
105422044 |
Iizshit |
B |
Jan. 25, 2021, 9:40 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
105432637 |
3deeb |
B |
Jan. 26, 2021, 2:57 a.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
105408099 |
Priyonty_ruet |
B |
Jan. 25, 2021, 5:59 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
105404444 |
GenghizKhan |
B |
Jan. 25, 2021, 5:29 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
102400 |
|
|
105414462 |
ujjwalavishek |
B |
Jan. 25, 2021, 7:12 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
105429673 |
W_D_Gaster |
B |
Jan. 26, 2021, 1:44 a.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
105435344 |
AdiCrio |
B |
Jan. 26, 2021, 3:50 a.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
105416991 |
Yasin_Polok |
B |
Jan. 25, 2021, 7:54 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
105411496 |
chowdhuryshashwoto |
B |
Jan. 25, 2021, 6:35 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
105432422 |
after_the_end |
B |
Jan. 26, 2021, 2:53 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
0 |
0 |
|
|
105427521 |
loooop |
B |
Jan. 26, 2021, 12:39 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
0 |
0 |
|
|
105418989 |
yhhuang |
B |
Jan. 25, 2021, 8:30 p.m. |
OK |
GNU C++11 |
TESTS |
2 |
0 |
0 |
|
|
105443114 |
vjudge2 |
B |
Jan. 26, 2021, 5:49 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
0 |
0 |
|
|
105434036 |
zhenli798 |
B |
Jan. 26, 2021, 3:24 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
0 |
0 |
|
|
105442200 |
vjudge2 |
B |
Jan. 26, 2021, 5:38 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
105440273 |
greelio |
B |
Jan. 26, 2021, 5:14 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
105443283 |
vjudge4 |
B |
Jan. 26, 2021, 5:51 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
105442705 |
vjudge1 |
B |
Jan. 26, 2021, 5:45 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
105442525 |
mikechan |
B |
Jan. 26, 2021, 5:43 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
105407403 |
rraj0511 |
B |
Jan. 25, 2021, 5:52 p.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
105404922 |
abid_206 |
B |
Jan. 25, 2021, 5:32 p.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
105440653 |
noobguy77 |
B |
Jan. 26, 2021, 5:19 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
105437682 |
RedAnt |
B |
Jan. 26, 2021, 4:34 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
105412046 |
MahmoudAli12 |
B |
Jan. 25, 2021, 6:42 p.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
3993600 |
|
|
105442118 |
jajantaram |
B |
Jan. 26, 2021, 5:37 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
105443323 |
Daikokuten |
B |
Jan. 26, 2021, 5:51 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
105443510 |
pawan_0 |
B |
Jan. 26, 2021, 5:54 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
105439582 |
kushanksriraj |
B |
Jan. 26, 2021, 5:05 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
105440298 |
Murtaza1112 |
B |
Jan. 26, 2021, 5:14 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
105430663 |
FadingAway |
B |
Jan. 26, 2021, 2:13 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105441845 |
xavier_cai |
B |
Jan. 26, 2021, 5:34 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105437581 |
chetansingh_1215 |
B |
Jan. 26, 2021, 4:33 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105435965 |
Greedy_Optimizzer |
B |
Jan. 26, 2021, 4:02 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105433829 |
parth_chovatiya |
B |
Jan. 26, 2021, 3:20 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105430456 |
BeasT_SlayeR_ |
B |
Jan. 26, 2021, 2:08 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105420551 |
leovl48 |
B |
Jan. 25, 2021, 9:03 p.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105415510 |
rishank_reddy |
B |
Jan. 25, 2021, 7:28 p.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105415088 |
rachilles |
B |
Jan. 25, 2021, 7:22 p.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105414783 |
MostafaZain |
B |
Jan. 25, 2021, 7:16 p.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
105417399 |
clam |
B |
Jan. 25, 2021, 8:01 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
105420311 |
niggatoxoxo |
B |
Jan. 25, 2021, 8:58 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
105428613 |
erwin2409 |
B |
Jan. 26, 2021, 1:13 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
105443065 |
Erohblak |
B |
Jan. 26, 2021, 5:49 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
105403651 |
sva2005 |
B |
Jan. 25, 2021, 5:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
105422903 |
Deepoo |
B |
Jan. 25, 2021, 10:04 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
16076800 |
|
|
105439499 |
Ernestico |
B |
Jan. 26, 2021, 5:04 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
105438830 |
dharminhirapara |
B |
Jan. 26, 2021, 4:53 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
105437675 |
sameerg |
B |
Jan. 26, 2021, 4:34 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
105441088 |
nomad_heart |
B |
Jan. 26, 2021, 5:25 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
105411960 |
mujtaba1747 |
B |
Jan. 25, 2021, 6:41 p.m. |
OK |
Go |
TESTS |
2 |
30 |
0 |
|
|
105406585 |
TomazGomes |
B |
Jan. 25, 2021, 5:45 p.m. |
OK |
Haskell |
TESTS |
2 |
46 |
102400 |
|
|
105404540 |
prezrohit |
B |
Jan. 25, 2021, 5:29 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
105441626 |
gourav2478 |
B |
Jan. 26, 2021, 5:32 a.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
105436322 |
rohitkalluri13 |
B |
Jan. 26, 2021, 4:09 a.m. |
OK |
Java 11 |
TESTS |
2 |
156 |
0 |
|
|
105423002 |
rafee69029 |
B |
Jan. 25, 2021, 10:07 p.m. |
OK |
Java 11 |
TESTS |
2 |
156 |
0 |
|
|
105434736 |
anshum_it_is |
B |
Jan. 26, 2021, 3:37 a.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
105426684 |
bobbilyking |
B |
Jan. 26, 2021, 12:08 a.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
105412059 |
Jerry8 |
B |
Jan. 25, 2021, 6:42 p.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
105410266 |
saitama_sensei_2021 |
B |
Jan. 25, 2021, 6:21 p.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
105402578 |
sparsh3896 |
B |
Jan. 25, 2021, 5:17 p.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
105442716 |
devil_the_coder |
B |
Jan. 26, 2021, 5:45 a.m. |
OK |
Java 11 |
TESTS |
2 |
171 |
0 |
|
|
105420058 |
less_ordinary |
B |
Jan. 25, 2021, 8:52 p.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
105413764 |
ujjwalavishek |
B |
Jan. 25, 2021, 7:02 p.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
105406269 |
InANutshell |
B |
Jan. 25, 2021, 5:42 p.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
105422016 |
nandit |
B |
Jan. 25, 2021, 9:40 p.m. |
OK |
Java 8 |
TESTS |
2 |
108 |
0 |
|
|
105418404 |
Snow |
B |
Jan. 25, 2021, 8:18 p.m. |
OK |
Java 8 |
TESTS |
2 |
108 |
0 |
|
|
105413892 |
RonWonWon |
B |
Jan. 25, 2021, 7:04 p.m. |
OK |
Java 8 |
TESTS |
2 |
108 |
0 |
|
|
105419314 |
AWahba |
B |
Jan. 25, 2021, 8:36 p.m. |
OK |
Java 8 |
TESTS |
2 |
108 |
0 |
|
|
105435941 |
Charigardash |
B |
Jan. 26, 2021, 4:02 a.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
105420114 |
EsraaSalah |
B |
Jan. 25, 2021, 8:54 p.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
105431275 |
_Emcikem_ |
B |
Jan. 26, 2021, 2:27 a.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
105425771 |
Spheniscine |
B |
Jan. 25, 2021, 11:34 p.m. |
OK |
Kotlin |
TESTS |
2 |
109 |
0 |
|
|
105417422 |
koper |
B |
Jan. 25, 2021, 8:01 p.m. |
OK |
Kotlin |
TESTS |
2 |
187 |
0 |
|
|
105402657 |
gustavopc |
B |
Jan. 25, 2021, 5:17 p.m. |
OK |
Kotlin |
TESTS |
2 |
202 |
0 |
|
|
105424154 |
IsTinG |
B |
Jan. 25, 2021, 10:40 p.m. |
OK |
Kotlin |
TESTS |
2 |
202 |
0 |
|
|
105417671 |
CodingKnight |
B |
Jan. 25, 2021, 8:06 p.m. |
OK |
Kotlin |
TESTS |
2 |
202 |
819200 |
|
|
105412614 |
wbars |
B |
Jan. 25, 2021, 6:48 p.m. |
OK |
Kotlin |
TESTS |
2 |
217 |
0 |
|
|
105426509 |
honghan |
B |
Jan. 26, 2021, 12:01 a.m. |
OK |
MS C++ |
TESTS |
2 |
15 |
0 |
|
|
105431150 |
zuichudemengxiang |
B |
Jan. 26, 2021, 2:24 a.m. |
OK |
MS C++ |
TESTS |
2 |
30 |
11980800 |
|
|
105443537 |
vjudge1 |
B |
Jan. 26, 2021, 5:54 a.m. |
OK |
MS C++ |
TESTS |
2 |
62 |
0 |
|
|
105431639 |
XZIT20020508134 |
B |
Jan. 26, 2021, 2:36 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
15 |
0 |
|
|
105416738 |
Wolf_Cub |
B |
Jan. 25, 2021, 7:49 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
15 |
0 |
|
|
105428881 |
jagajang |
B |
Jan. 26, 2021, 1:21 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
15 |
0 |
|
|
105444135 |
vjudge5 |
B |
Jan. 26, 2021, 6:02 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
15 |
0 |
|
|
105429681 |
scka |
B |
Jan. 26, 2021, 1:45 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
15 |
0 |
|
|
105437212 |
jongwook123 |
B |
Jan. 26, 2021, 4:25 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
30 |
0 |
|
|
105443496 |
gao_wu_di |
B |
Jan. 26, 2021, 5:54 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
30 |
0 |
|
|
105402754 |
htija |
B |
Jan. 25, 2021, 5:18 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
30 |
0 |
|
|
105437170 |
samsungbreaker |
B |
Jan. 26, 2021, 4:25 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
31 |
0 |
|
|
105435276 |
XieJiaXuan |
B |
Jan. 26, 2021, 3:48 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
31 |
0 |
|
|
105414766 |
NAbdulla |
B |
Jan. 25, 2021, 7:16 p.m. |
OK |
.NET Core C# |
TESTS |
2 |
109 |
204800 |
|
|
105444159 |
masxsimo2003 |
B |
Jan. 26, 2021, 6:02 a.m. |
OK |
.NET Core C# |
TESTS |
2 |
109 |
307200 |
|
|
105441366 |
Testarossa |
B |
Jan. 26, 2021, 5:29 a.m. |
OK |
.NET Core C# |
TESTS |
2 |
124 |
409600 |
|
|
105427571 |
watarimaycry2 |
B |
Jan. 26, 2021, 12:41 a.m. |
OK |
Node.js |
TESTS |
2 |
46 |
3072000 |
|
|
105434292 |
sharma_utkarsh |
B |
Jan. 26, 2021, 3:29 a.m. |
OK |
PyPy 2 |
TESTS |
2 |
202 |
1126400 |
|
|
105402629 |
_aadiupadhyay_ |
B |
Jan. 25, 2021, 5:17 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
93 |
3379200 |
|
|
105405359 |
Coding_RDX1 |
B |
Jan. 25, 2021, 5:35 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
108 |
3993600 |
|
|
105423585 |
__AStar__ |
B |
Jan. 25, 2021, 10:24 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
109 |
3993600 |
|
|
105403491 |
_aadiupadhyay_ |
B |
Jan. 25, 2021, 5:23 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
124 |
3379200 |
|
|
105427240 |
behindyou |
B |
Jan. 26, 2021, 12:29 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
124 |
3993600 |
|
|
105419901 |
tphung21 |
B |
Jan. 25, 2021, 8:49 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
124 |
9523200 |
|
|
105414408 |
sainad |
B |
Jan. 25, 2021, 7:11 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
124 |
10956800 |
|
|
105413137 |
KevinyWu |
B |
Jan. 25, 2021, 6:55 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
139 |
3788800 |
|
|
105437498 |
phuocchubeo |
B |
Jan. 26, 2021, 4:31 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
139 |
4096000 |
|
|
105434791 |
dutt_shouvik |
B |
Jan. 26, 2021, 3:38 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
139 |
4096000 |
|
|
105421164 |
Lelby |
B |
Jan. 25, 2021, 9:18 p.m. |
OK |
Python 2 |
TESTS |
2 |
61 |
0 |
|
|
105420993 |
elistark |
B |
Jan. 25, 2021, 9:14 p.m. |
OK |
Python 2 |
TESTS |
2 |
108 |
307200 |
|
|
105411845 |
patulka |
B |
Jan. 25, 2021, 6:39 p.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
716800 |
|
|
105418956 |
aditya-singh |
B |
Jan. 25, 2021, 8:29 p.m. |
OK |
Python 3 |
TESTS |
2 |
61 |
307200 |
|
|
105435225 |
happa |
B |
Jan. 26, 2021, 3:47 a.m. |
OK |
Python 3 |
TESTS |
2 |
62 |
307200 |
|
|
105437892 |
unemployed_engineer_10 |
B |
Jan. 26, 2021, 4:38 a.m. |
OK |
Python 3 |
TESTS |
2 |
78 |
307200 |
|
|
105410885 |
nishachoudhary |
B |
Jan. 25, 2021, 6:28 p.m. |
OK |
Python 3 |
TESTS |
2 |
93 |
0 |
|
|
105443128 |
pinnellisumanth1234 |
B |
Jan. 26, 2021, 5:49 a.m. |
OK |
Python 3 |
TESTS |
2 |
108 |
0 |
|
|
105440425 |
kiranmani004 |
B |
Jan. 26, 2021, 5:16 a.m. |
OK |
Python 3 |
TESTS |
2 |
108 |
0 |
|
|
105425719 |
mitrand1r |
B |
Jan. 25, 2021, 11:32 p.m. |
OK |
Python 3 |
TESTS |
2 |
108 |
0 |
|
|
105415611 |
Goldeneye534 |
B |
Jan. 25, 2021, 7:29 p.m. |
OK |
Python 3 |
TESTS |
2 |
108 |
0 |
|
|
105411865 |
amangupta375 |
B |
Jan. 25, 2021, 6:40 p.m. |
OK |
Python 3 |
TESTS |
2 |
108 |
0 |
|
|
105430219 |
satylogin |
B |
Jan. 26, 2021, 2 a.m. |
OK |
Rust |
TESTS |
2 |
15 |
0 |
|
|
105409146 |
kanik0 |
B |
Jan. 25, 2021, 6:09 p.m. |
OK |
Rust |
TESTS |
2 |
30 |
3584000 |
|
|
remove filters
Back to search problems