-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
92 lines (45 loc) · 975 Bytes
/
Copy pathmain.cpp
File metadata and controls
92 lines (45 loc) · 975 Bytes
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include <iostream>
#include <set>
#include <cctype>
#include<cmath>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<utility>
using namespace std;
#define F first
#define S second
#define ll long long
#define nl "\n"
#define PB push_back
class Solution {
public:
};
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int t;
vector<int> a;
int size;
int n;
cin >> t;
string s = "NO";
cin >> size;
while(t--){
cin >> n;
a.push_back(n);
a[size];
for(int i = 0 ;i < a.size();i++){
for(int j = i + 1;j < a.size();j++){
if(a[j] < a[i]){
s = "NO";
break;
}
else{
s = "YES";
}
}
}
}
return 0;
}