-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy paths10e.cpp
43 lines (34 loc) · 785 Bytes
/
s10e.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// s10e.cpp
// codechef
//
// Created by Tanishq Chamola on 06/10/19.
// Copyright © 2019 Tanishq Chamola. All rights reserved.
//
#include <iostream>
using namespace std;
/*
int main()
{
int t;
cin>>t;
while (t--) {
int n,count=0;
cin>>n;
int arr[n+5];
arr[0]=900;arr[1]=900;arr[2]=900;arr[3]=900;arr[4]=900;
for (int i=5; i<n+5; i++) {
cin>>arr[i];
}
for (int i=n+4; i>=5; i--) {
if (arr[i]>=arr[i-1]||arr[i]>=arr[i-2]||arr[i]>=arr[i-3]||arr[i]>=arr[i-4]||arr[i]>=arr[i-5]) {
}
else {
count++;
}
}
cout<<count<<endl;
}
return 0;
}
*/