forked from vs34/CaseComposer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrong.cpp
More file actions
51 lines (41 loc) · 996 Bytes
/
wrong.cpp
File metadata and controls
51 lines (41 loc) · 996 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
//SAMPLE CODE TO TEST
// #pragma GCC optimize("O3,unroll-loops")
// #include<bits/stdc++.h>
// using namespace std;
// #define int long long
// #define lp(a,n) for(int i =a; i< n; i++)
// void solve(){
// int n, m; cin >> n >> m;
// vector<int> a(n), b(m);
// lp(0, n){
// cin >> a[i];
// }
// lp(0, m){
// cin >> b[i];
// }
// // can have two values a[i] and b[0] - a[i] ;
// // must always be a[i-1] <= a[i]
// a[0] = min(a[0], b[0] - a[0]);
// lp(1, n){
// int first = a[i];
// int second = b[0] - a[i];
// if(a[i-1] <= first){
// if(a[i-1] <= second){
// a[i] = min(first, second);
// }
// }else if(a[i-1] <= second){
// a[i] = second;
// }else{
// no;
// return;
// }
// }
// yes;
// }
// signed main() {
// int x = 1;
// cin >> x;
// while(x--){
// solve();
// }
// }