Loading

摘要: In Omkar's last class of math, he learned about the least common multiple, or LCMLCM . LCM(a,b)LCM(a,b) is the smallest positive integer xx which is d 阅读全文
posted @ 2020-07-12 22:09 脂环 阅读(301) 评论(0) 推荐(0) 编辑
摘要: You have been blessed as a child of Omkar. To express your gratitude, please solve this problem for Omkar! An array aa of length nn is called complete 阅读全文
posted @ 2020-07-12 22:01 脂环 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 给出一个长为 nn 的数列,以及 nn 个操作,操作涉及区间加法,单点查值。 Input 第一行输入一个数字 nn。 第二行输入 nn 个数字,第 ii 个数字为 aiai,以空格隔开。 接下来输入 nn 行询问,每行输入四个数字 optopt、ll、rr、cc,以空格隔开。 若 opt=0opt= 阅读全文
posted @ 2020-07-12 12:56 脂环 阅读(190) 评论(0) 推荐(0) 编辑