非常简单,直接用scanf和printf函数,很好理解 解题思路:scanf输入三个数,只需要用printf输出中间那个数就行。注意事项:scanf没格式控制符之间要用空格,不加换行符。参考代码:#includeintmain(){inta,b,c;scanf("%d%d%d", 题解列表 2026年09月21日 6 点赞 0 评论 617 浏览 评分:10.0
C++简单解法 摘要:#includeusing namespace std;int main(void){ int a,b,c; cin>>a>>b>>c; cout…… 题解列表 2025年02月28日 2 点赞 0 评论 1390 浏览 评分:10.0
要啥留啥, 摘要:参考代码:#include<iostream> using namespace std; int main() { int a, res; for(int i = 3; i > 0…… 题解列表 2024年01月01日 0 点赞 0 评论 1213 浏览 评分:9.9
1806一行解(Python) 解题思路:将sys.stdin的内容转换为列表形式后打印即可注意事项:参考代码:print(input().split()[1]) 题解列表 2023年05月30日 0 点赞 0 评论 866 浏览 评分:9.9
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:输入三个正整数,取其第二个数字,即:a,b,c中的b注意事项:别输错数,别选错语言(C++)参考代码:#include<bits/stdc++.h> using namespace std…… 题解列表 2021年05月24日 0 点赞 0 评论 2542 浏览 评分:9.9
萌新出品 1806: [编程基础]输入输出练习之第二个数字 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>> a >> b >> c; cout<<…… 题解列表 2023年11月15日 0 点赞 0 评论 914 浏览 评分:9.9
题解 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:输入三个正整数,取其第二个数字,即:a,b,c中的b;注意事项:别输错数,别选错语言(C++);参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2023年12月02日 0 点赞 0 评论 818 浏览 评分:9.9
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; …… 题解列表 2023年12月05日 0 点赞 0 评论 797 浏览 评分:9.9
可以用数组的方式 摘要:解题思路:数组循环写入3个数字,输出第二个数字注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; for(int i=0;i<3;i++) …… 题解列表 2024年01月15日 6 点赞 0 评论 1808 浏览 评分:9.9
随便试了一下(Java代码) 摘要:import java.util.Scanner; public class Main{ /**第二个数字 * @param args */ public static …… 题解列表 2020年09月29日 0 点赞 0 评论 1524 浏览 评分:9.9