2019-09-01から1ヶ月間の記事一覧
C - GCD on Blackboard Problem summary There is numbers . You can change a number between and or do nothing. Calculate maximum GCD of N numbers after rewriting. Constraints ・Time limit: 2 sec ・Memory limit: 1024 MB ・Each input is an inte…
C - Attack Survival Problem summary You have an integer vector v whose length is N and whose initial element is K. Now we have Q queries for updating v. In query q_i (), you give an integer A_i and should decrement all other elements witho…