Current work

This commit is contained in:
2026-08-03 19:03:58 +01:00
parent b48299efb7
commit a79ff12290
46 changed files with 1345 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include "../../debugging.h"
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
freopen("lostcow.in", "r", stdin);
freopen("lostcow.out", "w", stdout);
/**
John has lost his cow
Bessie is at some location on a number line
John at x, Bessie at y
**/
int x, y;
cin >> x >> y;
int powTwo = 1, res = 0;
while (!((x + powTwo <= y && y <= x) || (x <= y && y <= x + powTwo))) {
powTwo *= -2;
}
cout << res;
}