From 8a540d1a8125488dbae86aef9cc214bff0c93c35 Mon Sep 17 00:00:00 2001 From: Shubham Atriwal Date: Tue, 31 Oct 2017 23:41:49 +0530 Subject: [PATCH] Create Sherlock and Array --- Sherlock and Array | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Sherlock and Array diff --git a/Sherlock and Array b/Sherlock and Array new file mode 100644 index 0000000..b98b931 --- /dev/null +++ b/Sherlock and Array @@ -0,0 +1,41 @@ +#include +#include +#include +#include +#include +using namespace std; + + +int main() { + int t; + cin>>t; + for(int j=0;j>n; + if(n==1) + {cout<<"YES"<>a[i]; + m+=a[i]; + } + for(long long int i=1;i