Created
January 20, 2017 05:34
-
-
Save mmun/e553fde3558c2f6d46626d7f84989805 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct activity { | |
long s, e, h; | |
bool operator<(const activity& other) const { | |
return e < other.e; | |
} | |
}; | |
// code snippet | |
upper_bound(activities.begin(), activities.end(), {0, x, 0}) - a.begin(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment