题解列表
[编程入门]自定义函数处理素数(C++实现)
摘要:```cpp
#include
using namespace std;
bool is_prime(int n){
if(n……
[编程入门]电报加密(C++代码)
摘要:不需要除去空格,只要设置条件忽视空格,空格可以不受影响地保留在输出结果中。
```cpp
#include
#include
using namespace std;
int mai……
[编程入门]结构体之时间设计(C++实现)含解题思路
摘要:解题思路分为4步:
1. 定义装有年月日的结构体
2. 定义判断是否为闰年的函数
3. 定义每个月天数的查询表
4. 定义主函数计算天数
```cpp
#include
#inclu……
[编程入门]数组插入处理-题解(python代码)
摘要:解题思路: 将已正序排列的数和单独输入的数放入一个列表中,用sort排序后输入即可。注意事项:参考代码:lst = list(map(int, input().split()))n = int(……
A+B for Input-Output Practice (IV)C语言优质题解
摘要:解题思路:#include <stdio.h>#include <malloc.h>int main(){ int x; while(scanf("%d",&x)!=EOF) { if(x==0) ……
写题解 1119: C语言训练-"水仙花数"问题1
摘要:#include<stdio.h>int main(){ int num; scanf("%d",&num);int a, b, c; a = num % 10; //取个位的数字 b……
[编程入门]数字逆序输出-题解(python代码)
摘要:解题思路: 将输入的数放入列表中,然后用reverse函数将列表中的数进行倒序。注意事项:参考代码:lst = list(map(int, input().split()))lst.revers……
[编程入门]自定义函数处理最大公约数与最小公倍数-题解(python代码)
摘要:解题思路: 定义函数输出两个数的最大公约数和最小公倍数,利用复合赋值或函数递归求出最大公约数,然后利用两数乘积再求出最小公倍数。注意事项: 参考代码:a, b = map(int, inp……