Problem E. Matrix from Arrays Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1162 Accepted Submission(s): 522 Problem Description Kazari has an array A length of L, she plans to generate a…
To the Max Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater locate…
传送门 \(A\) 根据裴蜀定理显然要\(k|\gcd(a_1,...,a_n)\),顺便注意不能造出大于\(\max(a_1,...,a_n)\)的数 int n,g,k,x,mx; int main(){ scanf("%d%d",&n,&k); fp(i,1,n)scanf("%d",&x),g=__gcd(g,x),cmax(mx,x); puts(k%g==0&&k<=mx?"POSSIBLE&quo…