题解列表
题解 1022: [编程入门]筛选N以内的素数-复盘
摘要:#includeusing namespace std;int su(int i){ if(i==2||i==3)return 1; for(int j=2;j>n; for(……
题解 2750: 字符菱形--终于写这个两for循环
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i……
题解 2096: 打印平行四边形-while和for
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i……
题解 2012: 百分制成绩转换-只用了if、for、数组
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i……
c++最大和最小差值的两种方法
摘要:方法一:使用climits头文件定义最大数,不需要数组#include <iostream>#include <climits>//包含INT_MAX和INT_MIN#incl……
数据结构--链表的基本操作
摘要:解题思路:该咋写就咋写注意事项:该咋写就咋写参考代码://累死我了,写这么多代码好累啊,写了1个小时,我还是太菜了#include<iostream>#include<cstring……
题解 3326-易于理解:法一+法二
摘要:解题思路:可分为五个部分,复制到编译器会好看一点注意事项:参考代码:#include<bits/stdc++.h>//常用组合头文件usingnamespace……
题解 3325:每行向左移动一个 字符,用 2025 重复填入
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define MAX 1000int main(){ ……
编写题解 2830: 数字统计
摘要:#include <bits/stdc++.h>using namespace std;int main(){ int l,r; cin……