-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrough.cpp
More file actions
49 lines (40 loc) · 1.06 KB
/
rough.cpp
File metadata and controls
49 lines (40 loc) · 1.06 KB
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
#include <bits/stdc++.h>
using namespace std;
#define loop(i,l,r) for(int i=l; i<r; i++)
#define int long long
#define pb push_back
#define vi vector<int>
#define mkp make_pair<int,int>
#define umpii unordered_map<int,int>
#define maxheap priority_queue<int>
#define minheap priority_queue<int, vi,greater<int>>
#define setbits(x) __builtin_popcountll(x)
#define zerobits(x) __builtin_ctzll(x)
#define in_arr(A,n) loop(i,0,n) cin>>A[i];
#define p_arr(A,n) loop(i,0,n) cout<<A[i]
;
#define pln_arr(A,n) loop(i,0,n) cout<<A[i]<<endl
#define take_n int n; cin>>n;
#define take_arr int arr[n]; loop(i,0,n) cin>>arr[i];
const int mod= 1e9+7;
const int inf= 1e15;
void solve(){
int n= 5;
set<int> st;
st.insert(1);
st.insert(3);
st.insert(4);
st.insert(5);
st.insert(7);
loop(i,0,n){
int q; cin>>q;
int j= *st.lower_bound(q);
cout<<j<<endl;
}
}
int32_t main(){
int t;
cin>>t;
while(t--) solve();
return 0;
}