用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 609 浏览 评分:9.9
运用循环小数的特点 摘要:解题思路:该题就是运用循环小数的特点:纯循环小数转化为分数:如0.4285742857…找到循环体42857,该循环体有5位,故而0.4285742857…就是42857/99999,这里有5个9这个…… 题解列表 2022年03月27日 0 点赞 0 评论 882 浏览 评分:7.1
自定义函数之数字后移 摘要:解题思路:利用两个数组,第一个数组保存数据,第二个数组完成后移拷贝注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2022年03月27日 0 点赞 0 评论 493 浏览 评分:9.9
[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 410 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; float…… 题解列表 2022年03月27日 0 点赞 0 评论 383 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ long long int i,…… 题解列表 2022年03月27日 0 点赞 0 评论 356 浏览 评分:0.0
编写题解 1142: C语言训练-立方和不等式 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum = 0; int k …… 题解列表 2022年03月27日 0 点赞 0 评论 389 浏览 评分:0.0
编写题解 1139: C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2…… 题解列表 2022年03月27日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10][10]; int n; int …… 题解列表 2022年03月27日 0 点赞 0 评论 344 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间 巧妙的结算 摘要:参考了别人的题解 ```cpp #include using namespace std; int n,k; long long num[100005];//注意long long不然范围不…… 题解列表 2022年03月27日 0 点赞 0 评论 597 浏览 评分:9.9