From 66d145aba41109e93959869a92715fc730f183ad Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Tue, 16 Aug 2016 11:07:23 +0800 Subject: [PATCH] Create 1050.cpp --- HDOJ/1050.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 HDOJ/1050.cpp diff --git a/HDOJ/1050.cpp b/HDOJ/1050.cpp new file mode 100644 index 0000000..dcf4c98 --- /dev/null +++ b/HDOJ/1050.cpp @@ -0,0 +1,34 @@ +#include +#include +#include +#include +using namespace std; +#define MAXINTERVAL 512 +int a[MAXINTERVAL]; +int main() +{ + int t; + scanf("%d",&t); + while(t--) + { + memset(a,0,sizeof(a)); + int n; + scanf("%d",&n); + int max=0; + for(int i=0;imax) max=a[j]; + } + } + printf("%d\n",max*10); + } + return 0; +}