题解列表

筛选

1149计算1~N之间所有奇数之和

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

出圈,人要麻木了,真的出圈了

摘要:解题思路:注意事项:在判断最后一个函数中的迭代器要两次判断尾参考代码:#include <iostream> #include <vector> using namespace std; voi……

[编程入门]宏定义的练习

摘要:解题思路:定义一个宏定义,求取a b的余数注意事项:取余符号是%参考代码:#include<stdio.h>#define reasu    (a%b)main(){    int a,b;    s……

[编程入门]数组插入处理

摘要:解题思路:关键在于n后面数的替换,可定义两个相同数组来实现替换。注意事项:参考代码:# includeint main(){ int n; int a[10]; int b[9]; for (int ……

1796: 蛇形填数

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

编写题解 2945: 素数对

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int s(int n){ if(n==1) return 0; for(int ……

没什么好说的

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {    int i;    scanf("%d",&i);    i=(i>>4)&(~(~0<<4));   ……

没什么好说的

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {    int a,n,b,c;    scanf("%u %d",&a,&n);    b=a>>n;    ……

2880: 计算鞍点

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