题解列表

筛选

二级C语言-计负均正

摘要:#includeusing namespace std; int main() { int a[110]; for(int i=1;i>a[i]; double ans……

3033: 放苹果

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明,用于存储测试用例数量和两个整数m和n int t, n……

超容易理解的

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void verse(int a){ int ret[100]; int count=0; w……

状态压缩DP #2495: 信息学奥赛一本通T1592-国王

摘要:**大体思路** 如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子 由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响 所以我们枚举每一行的所有==合法状态==,……

3030: 全排列

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; ……