Skip to content

Instantly share code, notes, and snippets.

@sasha-s sasha-s/puzzle2.cc
Created Jan 7, 2018

Embed
What would you like to do?
#include <iostream>
using namespace std;
void operator"" _x(decltype(0ull)) {
try {
cout << 1001 - (cin.iword(0)-- + 1000 ?: (throw(""), 7)) << " ";
} catch (...) {
return; } 0_x; cerr << 1004 - clog.xalloc() << " ";
}
0_x;
cerr << 999 + 2 + --errno << " ";
}
int main() { 1_x; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.