密码编译c++新手版 摘要:解题思路:注意事项:用了小循环,可以输入多组数据参考代码:#include <iostream>using namespace std;int main () { char a[10]; …… 题解列表 2022年11月20日 0 点赞 0 评论 396 浏览 评分: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 评论 353 浏览 评分: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 评论 337 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n******…… 题解列表 2022年11月21日 0 点赞 0 评论 256 浏览 评分: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 评论 305 浏览 评分: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 评论 271 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x>=0 && x<=100) …… 题解列表 2022年11月21日 0 点赞 0 评论 246 浏览 评分: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 评论 264 浏览 评分: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 评论 290 浏览 评分:0.0
编程入门-求和训练 摘要: 注意for循环的 表达式2 用|| 而不是&& 只要还有一个没满足 就继续循环下去 参考代码:#include<stdio.h> int main(){ int a; int b; i…… 题解列表 2022年11月21日 0 点赞 0 评论 254 浏览 评分:0.0