题目 1303: 统计数字题解 摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[500001],n,ans=1; int main…… 题解列表 2023年06月07日 0 点赞 0 评论 264 浏览 评分:0.0
[STL训练]sort练习 摘要:# STL sort ## 头文件 ```c++ #include ``` # 完整代码 ```c++ #include #include #include int mai…… 题解列表 2023年06月07日 0 点赞 0 评论 359 浏览 评分:0.0
C++函数重载练习 摘要:# C++ 函数重载 > 重载`Compare`函数 ```c++ int Compare(int a, int b) { return a > b ? a : b; } int…… 题解列表 2023年06月07日 0 点赞 0 评论 337 浏览 评分:0.0
C语言训练-排序问题<1> 摘要:#include<stdio.h> int main(){ int arr[4]; for(int i=0;i<4;i++){ scanf("%d",&arr[i]);…… 题解列表 2023年06月07日 0 点赞 0 评论 224 浏览 评分:0.0
编写题解 1169: 绝对值排序 摘要:#include<stdio.h> #include<math.h> int main(){ int n = 1; while(scanf("%d",&n)){ …… 题解列表 2023年06月07日 0 点赞 0 评论 244 浏览 评分:0.0
玉龙学长买雪糕C++实现 摘要:## 迭代 ```c++ #include using namespace std; int fib(int n){ int s = 0, res = 1; while…… 题解列表 2023年06月07日 0 点赞 0 评论 321 浏览 评分:0.0
C++实现字符与它对应的ASC码 摘要:## printf ```c++ #include #include using namespace std; int main() { char s; cin…… 题解列表 2023年06月07日 0 点赞 0 评论 412 浏览 评分:0.0
C++ string 登陆验证问题(一) 摘要:# C++ string类 > string ## AC代码 ```c++ #include using namespace std; int main() { stri…… 题解列表 2023年06月07日 0 点赞 0 评论 283 浏览 评分:0.0
有规律的数列求和简单求解 摘要:解题思路:观察分子分母变化规律,选取了一个简单的实现方法,设置初始变量分子为2,初始分母为1,数列首相an=2/1,在循环中,把分子分母的变化规律用相应的代码实现,用临时变量t=分子,分子等于原来分子…… 题解列表 2023年06月07日 0 点赞 0 评论 278 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa, xb, ya, yb,distance,length…… 题解列表 2023年06月07日 0 点赞 0 评论 301 浏览 评分:0.0