题解列表

筛选

无聊的星期六

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> #define AREA(a,b,c) (a+b+c)/2 #define SQRT(S,a,……

无聊的星期六

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YU(x,y) x%y int main() {     int x,y;     scanf("%d %d……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……

无聊的星期六

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int n,m; char sn[1111]="";……

无聊的星期六

摘要:解题思路:注意事项:参考代码:# include<stdio.h> int fun(int n) {    return (n<=3?n:fun(n-1)+fun(n-3)); } int ……

1738-排序(由小到大*多数据排序)

摘要:解题思路:用数组储存数据,两个for循环遍历数据,比较大小交换位置注意事项:会用到new获取数组大小参考代码:#include <iostream>using namespace std;void s……