编写题解 1202: 多输入输出练习1(非常简单的方法一看就懂)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,max=0; while(scanf("%d",&a)==1) { if(a>max) m……
多输入输出练习1 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cmath>
#include<string>
#include<algorithm>
using nam……
多输入输出练习1 (C++代码)
摘要:解题思路:这样写也过了。要按三次ctrl注意事项:参考代码:#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
……
多输入输出练习1 (C语言代码)
摘要:解题思路:因为是多行输入,输入Ctrl+Z程序才运行结束,所以先输入第一个,判断是否结束。如果不结束,把第一个输入的作为最大值,然后再一直输入到0为止,再输入的过程中把每一个输入的数都与最大值进行比较……
可AC(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, min = 0; while (scanf("%d", &n) != EOF) { if (n)……
c代码记录之多输入输出问题(important)
摘要:下方代码是把0算进比较的,系统也给过了,刚开始while漏了花括号,感谢雷兄一针见血。
后面写一个不把结尾0算进比较的代码
```c
#include
int main()
{
i……
多输入输出练习1 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include<algorithm>
using namespace std;
int main()
{
……
多输入输出练习1 (C语言代码)利用数组和memset函数
摘要:#include <stdio.h>#include <string.h> //memset函数在string.h头文件中void judge_……
多输入输出练习1 (Java代码)只要懂得转化。。你懂得
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] ages) ……