二级编程,分段函数, 摘要:解题思路:注意事项:记得加头文件,更改数据类型参考代码:#include<iostream>#include <cmath>//头文件,必加 #include <iomanip>//同上using n…… 题解列表 2023年06月18日 0 点赞 0 评论 509 浏览 评分:6.0
利润计算,c++求解 ,if,elseif双分支解题 摘要:解题思路:注意事项:可能编译时会显示出错,尝试运行,若还错请将有y(x)函数并入main参考代码:#include<iostream>using namespace std;int y(int x)/…… 题解列表 2023年06月18日 0 点赞 0 评论 691 浏览 评分:0.0
我奶奶都会 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[300]; gets(a)…… 题解列表 2023年06月18日 0 点赞 0 评论 1142 浏览 评分:9.9
小学生解法,刚学一周C,不会太复杂的 解题思路:将两行字符串相同的部分去除,剩下的两行字符串,哪个的字符数多,就以哪行的字符串数为操作次数(哈哈自己推下为什么)然后通过for循环比较a[i]b[i],要分开依次寻找出现重复的字符,统计sum。注意事项:我是新手,没啥建议参考代码:#include#include 题解列表 2023年06月18日 0 点赞 3 评论 863 浏览 评分:9.9 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i; float p = 1, q = 2,sum=2.0,temp; scan…… 题解列表 2023年06月17日 0 点赞 0 评论 550 浏览 评分:6.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%x",&n); printf("%d",n); retur…… 题解列表 2023年06月17日 0 点赞 0 评论 671 浏览 评分:0.0 1331: 新三国争霸 ```cpp#include#includeusingnamespacestd;intn,m,t,v,k,x,y,p,k1,k2,fa[301],f[51],d[51][51];boolb[51][301][301];structnode{intx, 题解列表 2023年06月17日 0 点赞 0 评论 1080 浏览 评分:9.9 1329: 合并傻子 摘要:```cpp #include #include int max(int a,int b) { return a>b?a:b; } int min(int a,int b) {…… 题解列表 2023年06月17日 0 点赞 0 评论 778 浏览 评分:9.9 感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >>…… 题解列表 2023年06月17日 0 点赞 0 评论 443 浏览 评分:0.0 感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >>x; i…… 题解列表 2023年06月17日 0 点赞 0 评论 508 浏览 评分:0.0 « 12...1265126612671268126912701271...59115912 »
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i; float p = 1, q = 2,sum=2.0,temp; scan…… 题解列表 2023年06月17日 0 点赞 0 评论 550 浏览 评分:6.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%x",&n); printf("%d",n); retur…… 题解列表 2023年06月17日 0 点赞 0 评论 671 浏览 评分:0.0
1331: 新三国争霸 ```cpp#include#includeusingnamespacestd;intn,m,t,v,k,x,y,p,k1,k2,fa[301],f[51],d[51][51];boolb[51][301][301];structnode{intx, 题解列表 2023年06月17日 0 点赞 0 评论 1080 浏览 评分:9.9
1329: 合并傻子 摘要:```cpp #include #include int max(int a,int b) { return a>b?a:b; } int min(int a,int b) {…… 题解列表 2023年06月17日 0 点赞 0 评论 778 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >>…… 题解列表 2023年06月17日 0 点赞 0 评论 443 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >>x; i…… 题解列表 2023年06月17日 0 点赞 0 评论 508 浏览 评分:0.0