题解列表

筛选

c++解题思路

```cpp#includeusingnamespacestd;structtime{intyear;intmonth;intday;};intn;intmain(){structtimest;cin>>st.year;cin>>st.month;cin>>st.day;if(st.year%400=

charAt之字符串反转

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);Stringstr=input.next();Str

1868: 装包装箱问题

摘要:解题思路: 箱子严格按由大到小装       6- 5-4-3-2-1                                                      &nb

1058: 二级C语言-求偶数和

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

15行代码写完

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

三个数找最大值

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

LikeWater - 1575: 蓝桥杯算法提高VIP-递归倒置字符数组C++(现在有课,暂时先把答案放这儿,大家先看看,有时间我补充解释说明)

```cpp#includeusingnamespacestd;intN;//完成一个递归程序,倒置字符数组。并打印实现过程//递归逻辑为://当字符长度等于1时,直接返回//否则,调换首尾两个字符,在递归地倒置字符数组的剩下部分char*Inversion(chars[],

c++ 40多行简单版

摘要:解题思路:创建链表删除所要求数据。注意事项:此为头插法,最后用数组来重新输出参考代码:#include<iostream>using namespace std;struct Data{    int……

巧用break怒干最小

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

没学过C++的都可以看懂

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