Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "/Users/the_sun/stdc++.h"
- //#include <bits/stdc++.h>
- using namespace std;
- ifstream in("input.txt");
- ofstream out("output.txt");
- #define pub push_back
- #define pob pop_back
- #define F first
- #define S second
- #define PI acos(-1)
- typedef long long ll;
- const int MAXN = 1e5 + 7;
- const ll MAXL = 1e18;
- const int N = 1e7;
- const double eps = 1e-11;
- int main() {
- ll n, k;
- cin >> n >> k;
- ll a, b, c, d;
- cin >> a >> b >> c >> d;
- a--;
- b--;
- c--;
- d--;
- bool must = false;
- if ((b - a + 1) >= k || (d - c + 1) >= k) {
- must = true;
- }
- ll start = -1, name = -1;
- //без замен
- if (!must) {
- //ставим первого первым
- bool can = true;
- ll kek1 = a % (2 * k);
- ll kek2 = b % (2 * k);
- if (b / (2 * k) * 2 * k >= a && b / (2 * k) * 2 * k <= b) {
- can = false;
- }
- ll kek3 = c % (k);
- ll kek4 = d % (k);
- if (d / (2 * k) + )
- if (can) {
- }
- }
- return 0;
- }
- /*
- 8
- .exe
- script
- a.in.txt
- a.t
- con.exe
- solution.cpp
- b.java
- verylongname.txt
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement