1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 方法一:```cpp#includeusingnamespacestd;intmain(){for(inti=1000;i 题解列表 2022年09月25日 0 点赞 0 评论 920 浏览 评分:9.9
1137: C语言训练-求函数值 摘要:```cpp #include using namespace std; int f(int x); int main() { int x; cin>>x; c…… 题解列表 2022年09月25日 0 点赞 0 评论 724 浏览 评分:9.9
1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:```cpp #include using namespace std; int main() { int n,sum=0,a[10][10]; cin>>n; …… 题解列表 2022年09月25日 0 点赞 0 评论 572 浏览 评分:9.9
1139: C语言训练-求素数问题 摘要:```cpp #include #include using namespace std; bool ss(int n) { for(int i=2;i>n; for(i…… 题解列表 2022年09月25日 0 点赞 0 评论 568 浏览 评分:9.9
1140: C语言训练-求车速 方法一:```cpp#includeusingnamespacestd;intmain(){intN=95859;while(true){N++;if((N/10000)==N%10&&((N/1000%10)==(N/10%10))){cout 题解列表 2022年09月25日 0 点赞 0 评论 701 浏览 评分:9.9
小学生的c++题解 摘要:解题思路:无注意事项:无参考代码:#include<iostream>using namespace std;int main(){ cout <<sizeof(int) << " "; …… 题解列表 2022年09月25日 0 点赞 0 评论 729 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转(多种方法合集) 摘要:解题思路:第一个方法,也是最简单的方法,输入以后逆序输出:这里使用了strlen函数,要记得加上头文件cstring(c语言是string.h)#include <iostream> #includ…… 题解列表 2022年09月27日 0 点赞 0 评论 931 浏览 评分:9.9
萌新也能轻松AC之结构体之时间设计 #MarkDown编辑器基本使用说明```pythonclassToday:创建年月日结构体def__init__(self,year,month,day):self.year=yearself.month=monthself.day=daydefdate_of_today(self):定义日期转换函 题解列表 2022年09月27日 0 点赞 0 评论 712 浏览 评分:9.9
萌新也能轻松AC之报数问题 ```python#解题思路:构建数值列表,循环找出其中为3的编号,而后将该编号之后的元素插入列表首元素位置。排列完成后,再将该编号元素删除,并继续进行下一波报数。以此类推,最后列表还剩下两个元素后,退出循环。输出下标为1号的元素的编号(注意编号与元素下标的关系)。 题解列表 2022年09月27日 0 点赞 0 评论 678 浏览 评分:9.9
优质题解 【C语言】十六进制转八进制:利用位运算的处理方式 - DotcppXF 摘要:【解题思路】 ① 首先题目输入要求每个十六进制数长度不超过100000,注意是“长度”不是“大小”,所以没办法直接用%x和%o来进行输入输出了; ② 这题需要进行大数的进制…… 题解列表 2022年09月27日 1 点赞 0 评论 2067 浏览 评分:9.9