Files
adamfandClaude Opus 5.5 ac66ad6b03 Tidy the usaco CLI: prefixes everywhere, LOCAL debug builds, git-based dates
- done/skip/undo accept unique prefixes like every other command
- builds define LOCAL (-I repo root): the template includes debugging.h
  and enables DBG/printV only locally, so main.cpp is submittable as-is
- run/build/test --debug (or USACO_DEBUG=1): ASan/UBSan + _GLIBCXX_DEBUG
- list/stats date problems by git history, not mtimes reset by checkouts
- template/tpl is now an alias of reset (which gains -y); fixes template
  dropping the STDIO line
- run shows <io>.out via detect_io instead of the first *.out
- debugging.h: size_t loop indices (no -Wsign-compare noise)
- zsh completion for i/cat/copy; README covers test, io, reset, --debug
- ignore a.out

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:39:16 +01:00

30 lines
480 B
C++

#ifdef LOCAL
#include "debugging.h"
#endif
#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;
}