2773: 计算线段长度(数组解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a[3],b[3]; double sum=0,num…… 题解列表 2024年11月04日 0 点赞 0 评论 236 浏览 评分:0.0
隨隨便便写一写,我尽量解释清楚这一题我为什么要这么写代码,这是我目前能想到的最详细的解读过程了 摘要:解题思路:第一年年底,房价200万,第一年一整年下来,他手头上有了N万;第二年年底,房价200*(1+K*0.01)万【从数学上来说,百分号K 可以等于K*0.01】,他今年工资一共N万,加上去年一整…… 题解列表 2024年11月05日 0 点赞 0 评论 221 浏览 评分:0.0
详细注释 2046: 输出全排列 摘要:``` #include #include #include #include #include #include #include #include #include #incl…… 题解列表 2024年11月05日 2 点赞 0 评论 190 浏览 评分:8.0
小明今年三岁啦 摘要:解题思路:保留计算结果的两位就是利用%100求余(a+b)的和注意事项:参考代码:#include int main() { int T; int a,b; scanf("%d",&T); …… 题解列表 2024年11月05日 0 点赞 0 评论 130 浏览 评分:9.9
多种方法,不使用数组也行 摘要:有多种解法,可以先排序,然后直接首尾相减 ```c #include #include int cmp(const void *a,const void *b){ return …… 题解列表 2024年11月05日 0 点赞 0 评论 145 浏览 评分:0.0
高精度加法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string a1,a2; int b1[20000],b2[…… 题解列表 2024年11月05日 0 点赞 0 评论 140 浏览 评分:0.0
a+b简单写法 摘要:解题思路:用if限定范围不超过2^10,或者排除2^10之外的数,然后进行简单的加减注意事项:参考代码:#include<stdio.h>int main(){ int a,b; whil…… 题解列表 2024年11月05日 1 点赞 0 评论 1013 浏览 评分:9.9
基于c++string特性的解法,但在vs上测试无问题,在网页验证过不去 摘要:解题思路:利用c++本身的string 的特性,来完成解答c++对于string字符串是允许直接对字符串本身进行用 [ ] 的方式来访问字符串中的 单个字符,因此,我们只需通过string库内自带的…… 题解列表 2024年11月05日 0 点赞 1 评论 285 浏览 评分:9.9
高精度减法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string s1,s2; int a1[1000]={0},…… 题解列表 2024年11月05日 0 点赞 0 评论 358 浏览 评分:0.0
每一行都有解析的c++代码。 摘要:参考代码:#include <bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话,在用的地方前加std::int main() {//主函数…… 题解列表 2024年11月05日 1 点赞 0 评论 195 浏览 评分:8.0