题解列表

筛选

日期换算。。

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

计算奇数个数

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

与2无关的数

摘要:解题思路:注意事项:n的取值范围为1000以内参考代码:#include<iostream>using namespace std;int main(){    int n,sum=0;    cin……

搜索dfs+暴力

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int len;string ans = "";int jaa(int x, in……

贷款计算。。。

摘要:解题思路:注意事项:注意单位的换算,本金以万元为单位,但输出是以元为单位。还有是计算第一个月的还款金额,已归还的金额数为零参考代码:#include<iostream>using namespace ……

求平均工资

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

输出M到N的数

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

玉龙学长买雪糕

摘要:解题思路:sum是购买总数,x为第几家店要买的雪糕数量注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,x=0,……

#C++1052——[编程入门]链表合并(STL)

摘要:解题思路:结构体链表,函数参数传对象,排序的时候指明排序规则;注意事项:STL链表下的sort,以及merge函数(归并前,先排序)的使用方法;参考代码:#include <iostream> #i……