Lemma: In any m integers, there must be some whose sum is a multiple of m.
Proof: Let m integers be x1,x2,⋯,xm,Si=x1+x2+⋯+xi(i=1,2,…,m). If S1, S2,⋯,Sm have distinct remainders when divided by m, then there must be m∣Si; otherwise, there must be 1⩽i<j⩽m such that Si=Sj (modm), then m∣Sj−Si=xi+1+⋯+xj, proving the lemma. Returning to the original problem.
2020=2×1010, the sum of 2019 ones and 1 zero is 2019,2020∤2020−1, so there does not exist an even number of 1s in 2019 ones and 1 zero whose sum is a multiple of 2020, hence k⩾2021.
Taking any 2021 integers, let there be t odd numbers a1,a2,…,at, and s even numbers b1,b2,…,bs where t+s=2021. If t is odd, then s is even. Let x1=2a1+a2,x2=2a3+a4,⋯,x2t−1=2at−2+at−1, x2t+1=2b1+b2,xt+1+1+1=2b3+b4,⋯,x1010=2bs−1+bs. By the lemma, x1,x2,…,x1010 must have some whose sum is a multiple of 1010, i.e., a1,a2,…,a1,b1,b2,…,bs have an even number whose sum is a multiple of 2020. Therefore, k⩽2021,k=2021. When t is even and s is odd, similarly k=2021. In summary, k=2021.