题解列表

筛选

C++版简单4位数

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

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

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

巧用break怒干最小

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

c++ 40多行简单版

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

15行代码写完

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

c++解题思路

摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };……

[编程入门]求和训练-题解

摘要:解题思路:利用三次循环进行求解,将a,b,c中的值依次加到Sn上注意事项:int类型可以赋值给float类型,不会损失精度c部分的除法,分子用1.0,可以将k转换为浮点数进行运算,得到的值记为浮点数编……