题解列表

筛选

1955: 贷款计算

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

c++递归法解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int f(int x){ if(x==1||x==2) ……

c++字符串的简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ string str; getli……

c++循环解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ int n=0,sum=0,s=0……

10行搞定(c++代码)超易懂

摘要:解题思路:列举样例的情况不难发现,靠左边的树苗离右边的长度决定了它的最高度,同理,靠右的树苗离左边界的距离决定了它的高度,这样看来这个题目就简单多了       第一天                ……

C语言训练-数字母

摘要:**思路:** 如果参数是字母,`isalpha`函数返回true。 `isalpha`函数原型在`cctype`中。 `'\0'`是字符串的结尾 **代码:** ```c++ #incl……

c++字符串简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm>using namespace std;int main(){ int n,m; string……

1869: 鸡兔同笼(多组输入)

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

1872: 春夏秋冬季节判断

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     cin>>n;    ……