from open hack night, up to triangle problem