正文
增加 3 行删除 3 行
3 行未改动456789101112122 行未改动全部展开1351361371381391401411421434 行未改动148149150151152153154155156256 行未改动全部展开3 行未改动>> 现在有 $q$ 次询问,每次询问是是否可以通过适当的选取,使得价值总和恰好为 $x$。>> 数据范围:>> - 对于 $50\%$ 的数据,$1\le n,x\le2\times 10^3$;> - 对于 $100\%$ 的数据,$1\le n,x\le 3\times 10^4$。>> 对于所有数据,$1\le w_i\le x,1\le q\le 10^5$。122 行未改动全部展开using namespace std;int main(){bitset<8>x("0010111");char t[55]=x.to_string();cout<<t[5];}```它在编译中,会返回 [Error] array must be initialized with a brace-enclosed initializer。4 行未改动using namespace std;int main(){bitset<8>x("1010101");string t=x.to_string();cout<<t;}```::::256 行未改动全部展开3 行未改动456789101112122 行未改动全部展开1351361371381391401411421434 行未改动148149150151152153154155156256 行未改动全部展开3 行未改动>> 现在有 $q$ 次询问,每次询问是是否可以通过适当的选取,使得价值总和恰好为 $x$。>> 数据范围:>> - 对于 $50\%$ 的数据,$1\le n,x\le2\times 10^3$;> - 对于 $100\%$ 的数据,$1\le n,x\le 3\times 10^4$。>> 对于所有数据,$1\le w_i\le x,1\le q\le 10^5$。122 行未改动全部展开using namespace std;int main(){bitset<8>x("0010111");char t[55]=x.to_string();cout<<t[5];}```它在编译中,会返回 [Error] array must be initialized with a brace-enclosed initializer。4 行未改动using namespace std;int main(){bitset<8>x("1010101");string t=x.to_string();cout<<t;}```::::256 行未改动全部展开