1009: [编程入门]数字的处理与判断 摘要:解题思路:由于本人是一个新手,可能想的会有点复杂。我一开始的想法是:定义一个整形变量x并取值,并进行一系列运算,但是试验了多次后,发现很明显不行,因为一旦对x进行运算,x原有的值便会改变,无法进行下一…… 题解列表 2022年11月20日 0 点赞 0 评论 136 浏览 评分:0.0
密码编译c++新手版 摘要:解题思路:注意事项:用了小循环,可以输入多组数据参考代码:#include <iostream>using namespace std;int main () { char a[10]; …… 题解列表 2022年11月20日 0 点赞 0 评论 235 浏览 评分:0.0
编写题解 1000: [竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int A,B,c; c=pow(2,10); while(~scanf("%d…… 题解列表 2022年11月21日 0 点赞 0 评论 170 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a>b?a:b; ma…… 题解列表 2022年11月21日 0 点赞 0 评论 151 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n******…… 题解列表 2022年11月21日 0 点赞 0 评论 106 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float c,F; scanf("%f",&F); c=5*(F-32)/9; pri…… 题解列表 2022年11月21日 0 点赞 0 评论 143 浏览 评分:0.0
编写题解 1007: [编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; els…… 题解列表 2022年11月21日 0 点赞 0 评论 131 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x>=0 && x<=100) …… 题解列表 2022年11月21日 0 点赞 0 评论 107 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,i,num,result; scanf("%d",&i); if(i>=0 &…… 题解列表 2022年11月21日 0 点赞 0 评论 132 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,num=1,result; scanf("%d",&n); for(i=1;i<n;++i…… 题解列表 2022年11月21日 0 点赞 0 评论 153 浏览 评分:0.0