From a90394466c2e8ba449f80399017abdab99d6af65 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 26 May 2016 07:35:28 +0800 Subject: [PATCH] Create 1744.c --- QUSTOJ/1744.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 QUSTOJ/1744.c diff --git a/QUSTOJ/1744.c b/QUSTOJ/1744.c new file mode 100644 index 0000000..6932582 --- /dev/null +++ b/QUSTOJ/1744.c @@ -0,0 +1,62 @@ +#include + +int a[16]; + +int findmax() +{ + int max=-(1e9); + int imax=-1; + for(int i=0;i<10;i++) + { + if(a[i]>max) + { + max=a[i]; + imax=i; + } + } + return imax; +} + +int findmin() +{ + int min=1e9; + int imin=-1; + for(int i=0;i<10;i++) + { + if(a[i]