1157. The hardest problem

Posted 任我主宰

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1157. The hardest problem相关的知识,希望对你有一定的参考价值。

#include<iostream>
using namespace std;
int main()
{
 int n;
 while(cin>>n&&n!=0&&n<=4){
        int t;
  int max=0;
  for(int i=0;i<n;i++){
   cin>>t;
   if(t>max) max=t;
  }
  cout<<max<<endl;
 }
 return 0;
}

以上是关于1157. The hardest problem的主要内容,如果未能解决你的问题,请参考以下文章

(HDU)1048 --The Hardest Problem Ever( 最难的问题)

(字符串 枚举)The Hardest Problem Ever hdu1048

CF Gym 101955G Best ACMer Solves the Hardest Problem

G - Best ACMer Solves the Hardest Problem Gym - 101955G

Who's in the Middle[HDU1157]

C++9018:1157/POJ1088——滑雪