随笔分类 - codeforces刷题笔记
摘要:A. Strange Splitting We know the range of a non-empty array is the maximum value minus the minimum value. the range of the red elements does not equal
阅读全文
摘要:Problem A. 配对质数 此题事先把素数筛出来,由于从前往后可能会导致后面的数字无法配对,我们只需从后往前,把数x/2得到的两个数,即可完成配对操作 #include <iostream> #include <vector> #include <algorithm> using namespa
阅读全文

浙公网安备 33010602011771号