#include <bits\stdc++.h>
using namespace  std;
int main()
{
    freopen("C:\\Users\\dcf\\Desktop\\txt.txt","r",stdin);
    int n,mx=0;
    while(cin>>n)
    {
        if(n>mx)
            mx=n;
    }
    cout<<mx<<endl;
    return 0;
}

freopen 可代替大量的数据输入

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-29
  • 2022-01-25
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案