题解列表

筛选

2886: 图像旋转 简单c++

摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h> int a[100][100]; int b[100][100]; using namespace std; ……

2880: 计算鞍点简单c++

摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>  int a[100][100]; using namespace std; int main() {  ……

向量点积计算

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[10000],b[10000],sum=0;int main(){……

2901: 查找特定的值

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,d;int c[1000000];int main(){    int sum=1; ……

3020: 最大数位置

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,sum;int c[1000000];int main(){    cin >>a;   ……

题解 2821: 开关灯

摘要:解题思路:首先,如何确定每盏灯的开关?——可以用1代表初始值“开”。for(int i=1;i<=n;i++) {     light[i]=1; }接下来,如何表示每个人对灯的反向操作?for……

C语言解全排列

摘要:解题思路:注意事项:两种代码,第二种交换的代码由于最终打印顺序不同通过不了此题参考代码:#include <stdio.h>#include <string.h>#include <stdbool.h……