摘要: 解法:总和为奇数必为false,如果数字的某种组合能够等于 所有数字的总和/2。 #include <bits/stdc++.h> using namespace std; bitset<50005> flag; ///bitset 在 bitset 头文件中, ///是一种类似数组的结构, /// 阅读全文
posted @ 2020-05-03 15:47 wusheng_z 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<stdio.h> #include<string.h> using namespace std; typedef long long ll; string now; ll n; int main() { while(~scanf("%lld", 阅读全文
posted @ 2020-05-03 14:25 wusheng_z 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<math.h> int main(){ long long n,m,i,x,s; int arr[16] = {2,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3}; scanf("%lld",&n); m = sqrt(2*n);/ 阅读全文
posted @ 2020-05-03 11:02 wusheng_z 阅读(175) 评论(0) 推荐(0) 编辑