C语言训练-排序问题<2>-题解(C++代码) 摘要:解题思路:和排序问题的第一题一样的,可以去我的主页看一下注意事项:参考代码:#include <iostream> using namespace std; void sort(int …… 题解列表 2021年02月19日 0 点赞 0 评论 808 浏览 评分:9.9
C语言训练-排序问题<1>-题解(C++代码) 摘要:解题思路:详情看代码注释注意事项:参考代码:#include <iostream> using namespace std; void sort(int a[]) //排序使用的是插…… 题解列表 2021年02月19日 0 点赞 0 评论 880 浏览 评分:9.9
[编程入门]结构体之成绩记录-题解(C++代码) 摘要:解题思路:按题目的要求走,先输入N,再建立两个函数,main函数调用函数即可注意事项:结构体建立时三个分数的灵活运用参考代码:#include<iostream>using namespace std…… 题解列表 2021年02月19日 0 点赞 0 评论 888 浏览 评分:9.9
信息学奥赛一本通T1179-奖学金-题解(C++代码) 摘要: #include using namespace std; struct stu { int c; int d; …… 题解列表 2021年02月18日 2 点赞 0 评论 1039 浏览 评分:5.8
[编程入门]猴子吃桃的问题-题解(C++代码) 摘要:解题思路倒推,和题目反着来思路解释如果N为3答案(1)+1-> 2 *2->4 +1->5 *2->10 +1->11 *2 ->22(共重复执行3次)因为在最后一次的时候多乘2和多加1,所以要在最后…… 题解列表 2021年02月18日 0 点赞 0 评论 735 浏览 评分:7.3
优质题解 舍罕王的失算-O(1)解法(Python & C++) 摘要:# Part 1 推导 题目描述经过我们精简,可以发现实际上是要我们求一个序列: ```latex 2 ^ 0 + 2 ^ 1 + 2 ^ 2 + 2 ^ 3 + ... + 2 ^ {…… 题解列表 2021年02月18日 0 点赞 3 评论 1826 浏览 评分:9.1
[编程入门]自定义函数之字符串反转-题解(C++代码) 摘要:解题思路:使用for循环直接倒序输出注意事项:前面要加#include<string.h>参考代码:#include<iostream> #include<string.h> using name…… 题解列表 2021年02月18日 0 点赞 0 评论 439 浏览 评分:0.0
[编程入门]三个数最大值-题解(C++代码) 摘要:解题思路:用if,else注意事项:else后面不加条件参考代码:#include<iostream>using namespace std;int main(){ int a,b; c…… 题解列表 2021年02月18日 0 点赞 1 评论 444 浏览 评分:6.0
[编程入门]成绩评定-题解(C++代码) 摘要:解题思路:用if,else注意事项:else后面不加条件参考代码:#include<iostream>using namespace std;int main(){ int score; …… 题解列表 2021年02月18日 0 点赞 0 评论 703 浏览 评分:6.0
为什么c++超时改成c就不超时了(C++代码) 摘要:解题思路:注意事项:提交c++超时 不知道原因是什么 c代码完全可以通过参考代码:#include<bits/stdc++.h>using namespace std;int F(int n) /…… 题解列表 2021年02月18日 0 点赞 0 评论 615 浏览 评分:0.0