A+B for Input-Output Practice (III)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(1) { …… 题解列表 2022年10月24日 0 点赞 0 评论 686 浏览 评分:9.9
作为第一个题解我很荣幸 摘要:解题思路:利用getline可以正常输入空格注意事项:注意i和i-1参考代码:c++:#include <bits/stdc++.h>using namespace std;/*inline int …… 题解列表 2022年10月24日 0 点赞 0 评论 646 浏览 评分:9.9
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); while(n--) …… 题解列表 2022年10月24日 0 点赞 0 评论 434 浏览 评分:10.0
A+B for Input-Output Practice (II)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,i; cin>>n; for(i…… 题解列表 2022年10月24日 0 点赞 0 评论 950 浏览 评分:9.9
A+B for Input-Output Practice (I)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) …… 题解列表 2022年10月24日 0 点赞 0 评论 562 浏览 评分:7.3
Hello, world!(怀氏c++) 摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; …… 题解列表 2022年10月24日 0 点赞 0 评论 439 浏览 评分:9.9
二级C语言-平均值计算,罗。。。。。我写出来了 摘要:解题思路: 输入10个整数,求它们的平均值,并输出大于平均值的数据的个数看到输入10个整数,你要想到用什么来存这十个数。注意事项:参考代码:#include <stdio.h>int main(){…… 题解列表 2022年10月24日 0 点赞 1 评论 286 浏览 评分:2.0
数学(转换为两点的距离计算) 摘要:d1,p1,q1,d2,p2,q2=map(int,input().split())m=1 # 类似根号3dict1={0:-1,1:-0.5,2:0.5,3:1,4:0.5,5:-0.5}dict2…… 题解列表 2022年10月24日 0 点赞 0 评论 928 浏览 评分:6.0
多方法求阶乘(迭代、递归) 摘要:思路:本题考的非常简单,就是自定义一个函数,然后求阶乘的倒数之和。而求阶乘有两种方法,第一种是:使用迭代求阶乘(for循环);第二种使用递归来求阶乘。 注意事项:注意数据类型,题目涉及到小数,使…… 题解列表 2022年10月24日 0 点赞 0 评论 568 浏览 评分:9.9
药房管理c语言版 摘要:解题思路:本题的意思是如果病人要的药不超过总量,则给他,如果超过则不给他换下一个人继续。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,sum=…… 题解列表 2022年10月24日 0 点赞 0 评论 792 浏览 评分:9.9