题解列表

筛选

编写题解 2554: 交点

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

2547: [CSP-J2019] 数字游戏

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

2544: N以内累加求和

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

2543: 简单计算机器实现

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

求大于1小于1000的阿姆斯特朗数

摘要:解题思路:拆解数字各个位上的数字,并求出立方和注意事项:无参考代码:#include <stdio.h>#include <math.h>int main() {    for (int i = 1;……

水仙花数判断

摘要:解题思路:首先表示这个三位数范围在100到999之间,再表示其百位,十位及个位数字。最后验证其百位,十位及个位数字的三次方之和是否等于该数字。注意事项:三个数字的表示参考代码:#include<std……

直方图(C语言)

摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; int max=-1;//题目说……

[编程入门]密码破译

摘要:解题思路:自己看注意事项:参考代码:#include <stdio.h>void encryptPassword(char* str) {    int i = 0;    while (str[i]……