Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sort
#include <iostream> #include <vector> #include <algorithm> int main() { std::vector<std::pair<int, int>> x{{0,1},{0,0},{0,1},{1,1},{1,0},{0,1},{0,0},{0,0},{0,0},{1,1},{1,1},{1,1},{1,0},{1,0},{0,0},{0,1},{1,1},{1,1},{1,0},{1,0},{0,1},{1,0},{0,1},{0,1},{1,1},{0,1},{0,0},{1,1},{0,0},{1,1},{1,1},{1,0},{1,1},{0,1},{1,0},{0,1},{1,1},{1,1},{0,0},{1,1},{1,0},{1,1},{0,0},{0,1},{1,1},{1,1},{1,0},{1,0},{1,0},{1,1},{0,0},{1,1},{0,1},{1,0},{0,1},{1,0},{0,1},{1,0},{0,0},{0,1},{1,0},{1,0},{0,0},{1,0},{1,0},{1,1},{0,1},{1,0},{0,1},{0,1},{0,0},{1,0},{0,0},{0,1},{1,0},{0,0},{0,0},{0,0},{0,1},{0,1},{1,0},{0,0},{0,0},{0,1},{0,0},{1,1},{1,0},{1,0},{1,0},{0,0},{0,1},{1,1},{0,0},{0,1},{0,1},{1,0},{0,0},{0,1},{0,1},{0,1},{1,1},{0,1},{0,1},{0,0},{1,1},{0,0},{1,1},{0,0},{1,1},{0,1},{1,1},{0,1},{0,1},{1,0},{1,1},{1,1},{1,1},{0,0},{1,0},{0,1},{1,0},{0,0},{1,1},{0,1},{0,1},{0,0},{0,1},{1,1},{1,1},{1,1},{0,1},{1,1},{1,1},{1,0},{0,1},{1,1},{1,1},{0,0},{0,1},{0,1},{1,0},{1,0},{0,1},{1,0},{0,0},{0,0},{0,0},{1,1},{1,0},{0,0},{1,1},{0,1},{0,1},{0,0},{1,0},{1,0},{1,1},{0,1},{1,0},{0,1},{1,0},{0,0},{1,1},{1,0},{1,1},{0,1},{1,1},{1,1},{0,0},{0,0},{0,1},{0,1},{0,1},{1,0},{1,1},{1,1},{1,1},{0,0},{1,0},{0,0},{1,0},{1,1},{0,0},{1,0},{1,1},{1,1},{0,0},{1,0},{1,1},{1,0},{1,1},{0,1},{0,0},{1,0},{0,1},{0,0},{0,0},{0,1},{0,1},{1,0},{0,0},{0,1},{0,1},{0,1},{0,1},{1,1},{0,1},{1,1},{1,0},{0,1},{1,0},{0,1},{1,0},{1,0},{0,1},{0,0},{0,1},{1,1},{1,0},{1,0},{0,1},{0,0},{1,1},{1,0},{1,0},{0,1},{1,0},{1,0},{0,1},{1,1},{0,0},{1,1},{1,0},{1,1},{1,0},{1,1},{1,1},{1,0},{1,1},{0,0},{1,0},{0,0},{1,1},{1,1},{0,1},{1,0},{0,0},{1,1},{1,1},{1,1},{1,1},{0,0},{0,1},{0,0},{1,1},{1,0},{0,0},{1,1},{0,0},{0,0},{1,1},{1,1},{0,0},{0,0},{0,0},{0,0},{0,1},{0,1},{1,0},{1,0},{1,0},{0,1},{1,0},{0,1},{1,1},{1,1},{1,1},{1,0},{0,0},{0,0},{0,0},{1,0},{0,0},{1,0},{0,1},{0,0},{1,0},{1,1},{0,1},{1,1},{1,0},{1,1},{0,1},{1,0},{0,1},{0,1},{0,0},{0,1},{0,0},{1,1},{0,1},{0,0},{1,0},{1,1},{0,1},{0,1},{0,1},{0,0},{1,0},{0,1},{1,0},{1,0},{1,0},{0,0},{0,1},{1,1},{1,0},{0,0},{1,1},{0,0},{1,1},{1,0},{1,1},{1,0},{0,0},{0,0},{0,0},{0,1},{1,0},{0,1},{1,1},{1,1},{0,1},{0,0},{1,1},{0,0},{0,0},{0,0},{0,0},{0,1},{1,1},{0,1},{0,1},{0,1},{0,0},{1,1},{0,1},{0,0},{1,0},{0,1},{0,1},{1,0},{1,0},{0,1},{0,0},{0,0},{0,0},{1,0},{1,1},{1,1},{0,1},{0,1},{1,0},{0,0},{1,1},{0,0},{1,0},{0,1},{0,1},{1,0},{1,0},{1,0},{0,1},{1,0},{0,1},{1,0},{1,1},{1,0},{0,0},{1,1},{1,1},{1,0},{0,0},{1,0},{1,1},{1,0},{1,0},{0,1},{0,1},{1,1},{1,0},{1,0},{1,1},{1,1},{1,1},{0,1},{1,1},{0,1},{0,0},{1,1},{1,0},{0,1},{0,1},{0,0},{1,0},{1,1},{0,0},{1,1},{0,1},{0,0},{0,0},{1,0},{0,0},{1,1},{1,1},{1,1},{0,0},{0,0},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{0,0},{1,0},{0,1},{0,1},{1,1},{1,0},{0,0},{0,0},{0,0},{0,0},{1,0},{1,1},{1,1},{1,1},{1,0},{1,0},{0,1},{0,0},{1,0},{0,0},{0,0},{0,0},{0,0},{1,1},{1,1},{1,0},{1,1},{0,0},{0,1},{1,0},{1,0},{0,1},{0,1},{0,1},{0,1},{0,1},{0,1},{0,0},{0,1},{1,0},{0,1},{0,1},{0,1},{0,0},{0,1},{1,1},{1,1},{0,0},{0,1},{1,1},{1,1},{0,1},{1,0},{1,1},{1,0},{0,0},{0,0},{0,0},{1,0},{0,0},{0,1},{0,1},{1,1},{0,0},{1,1},{1,1},{0,1},{1,1},{1,1},{1,1},{0,1},{0,0},{1,1},{1,0},{0,1},{0,1},{1,1},{1,1},{1,1},{1,1},{1,0},{1,0},{1,0},{1,0},{0,1},{1,1},{1,1},{1,0},{0,0},{0,0},{1,0},{0,1},{0,1},{0,1},{1,0},{0,0},{1,0},{0,1},{1,0},{1,1},{1,1},{1,1},{1,0},{0,1},{1,1},{1,1},{0,0},{0,1},{0,0},{1,0},{0,1},{1,0},{0,0},{1,1},{1,0},{0,1},{0,0},{1,1},{1,1},{0,0},{1,0},{0,1},{1,1},{0,1},{0,0},{1,0},{1,0},{0,1},{0,1},{0,0},{1,1},{1,1},{1,1},{0,0},{0,0},{0,1},{1,1},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{0,0},{0,1},{0,0},{1,0},{1,1},{1,1},{1,1},{0,1},{0,1},{0,0},{1,0},{1,0},{0,0},{1,0},{1,0},{0,0},{0,0},{0,1},{0,1},{0,1},{0,1},{1,0},{1,0},{1,1},{1,0},{0,1},{1,1},{0,1},{1,0},{0,1},{0,0},{0,1},{0,1},{0,0},{0,0},{1,1},{1,0},{0,1},{1,1},{0,0},{0,0},{1,0},{0,0},{0,0},{0,0},{1,0},{1,1},{1,1},{0,1},{1,1},{0,0},{0,1},{0,0},{1,0},{0,0},{1,0},{1,0},{0,0},{1,1},{1,1},{1,0},{0,1},{1,0},{0,1},{0,0},{0,1},{1,0},{1,0},{0,1},{1,1},{1,0},{0,0},{1,0},{1,1},{0,0},{0,0},{0,1},{1,1},{1,1},{0,1},{0,0},{1,0},{1,0},{1,0},{1,1},{0,0},{0,0},{1,0},{0,1},{1,0},{0,1},{0,1},{1,0},{0,0},{0,0},{0,1},{0,0},{0,1},{1,1},{1,0},{0,1},{1,0},{1,1},{0,1},{0,0},{1,1},{1,1},{0,0},{0,0},{0,0},{1,1},{1,1},{0,0},{0,0},{1,0},{0,0},{1,1},{1,1},{0,1},{1,1},{0,1},{1,1},{1,0},{1,0},{0,1},{1,1},{1,0},{1,0},{1,0},{1,0},{1,1},{0,0},{0,1},{0,1},{1,0},{1,0},{1,1},{1,0},{1,0},{1,1},{0,1},{1,0},{0,0},{1,1},{1,0},{0,0},{0,1},{0,1},{1,1},{0,1},{0,1},{0,1},{1,0},{0,1},{1,0},{1,1},{0,1},{0,1},{0,1},{1,1},{0,0},{1,0},{1,1},{0,1},{0,0},{1,0},{0,1},{0,1},{0,0},{1,1},{0,1},{1,1},{0,0},{0,1},{0,0},{1,0},{0,1},{0,0},{0,0},{1,1},{1,1},{0,1},{0,0},{1,0},{0,0},{0,0},{0,0},{0,0},{1,1},{1,1},{0,1},{1,1},{0,0},{1,0},{0,1},{1,0},{0,0},{0,1},{1,1},{0,1},{1,1},{0,0},{0,1},{0,1},{1,1},{0,0},{1,1},{1,1},{1,0},{0,1},{1,0},{1,1},{1,0},{0,1},{0,1},{0,0},{0,1},{0,1},{1,0},{0,1},{0,1},{1,0},{0,1},{1,0},{0,0},{0,1},{1,0},{1,1},{0,1},{0,0},{0,1},{1,0},{1,1},{1,1},{0,0},{0,0},{0,1},{0,1},{0,1},{0,0},{0,0},{0,0},{1,1},{1,1},{0,1},{1,1},{1,0},{0,1},{0,1},{1,0},{0,0},{1,1},{0,1},{0,1},{1,0},{0,1},{0,0},{1,0},{0,1},{1,0},{1,1},{0,1},{0,0},{1,1},{1,0},{1,1},{1,1},{1,0},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{0,0},{1,0},{0,0},{1,0},{1,1},{1,0},{1,0},{0,0},{1,1},{0,0},{1,0},{0,1},{1,0},{1,0},{0,1},{0,1},{0,0},{0,1},{1,1},{1,0},{0,0},{0,0},{1,0},{1,0},{1,1},{0,1},{1,1},{0,1},{1,1},{0,0},{1,1},{1,1},{0,0},{1,1},{0,0},{0,1},{0,1},{1,0},{1,0},{0,0},{1,1},{1,0},{1,0},{0,1},{1,1},{0,0},{0,0},{1,1},{1,0},{1,1},{1,1},{0,0},{0,0},{1,1},{1,1},{1,1},{0,1},{0,0},{0,0},{0,1},{1,1},{1,1},{1,0},{0,0},{1,1},{1,1},{0,0},{1,0},{1,1},{0,1},{1,0},{1,0},{0,0},{0,0},{0,0},{1,1},{1,0},{0,1},{1,1},{0,0},{0,0},{1,1},{1,1},{0,1},{0,0},{0,1},{1,0},{0,0},{1,1},{1,1},{1,1},{1,1},{1,1},{0,1},{0,1},{0,0},{0,0},{1,1},{1,0},{0,1},{0,1},{1,0},{1,0},{1,1},{1,0},{1,0},{1,1},{1,0},{1,1},{0,0},{1,1},{0,1},{1,0},{0,0},{1,0},{1,1},{0,0},{1,1},{1,0},{0,0},{1,1},{0,1},{1,0},{1,1},{1,1},{0,1},{1,1},{0,1},{0,0},{0,1},{1,1},{1,1},{1,0},{1,1},{0,1},{0,0},{1,0},{0,0},{1,0},{0,0},{0,0},{1,0},{1,0},{0,1},{1,0},{0,0},{0,0},{1,1},{1,0},{0,1},{1,1},{1,1},{1,1},{0,0},{1,0},{0,0},{0,0},{1,0},{1,0},{0,0},{1,1},{1,0},{0,0},{1,0},{1,0},{1,0},{1,1},{1,0},{0,0},{1,0},{1,1},{0,0},{0,1},{0,0},{0,1},{0,1},{0,0},{0,1},{1,0},{0,1},{1,1},{1,0},{1,0},{1,1},{1,0},{1,1},{1,0},{0,0},{0,0},{0,1},{1,0},{1,1},{1,0},{1,0},{0,1},{0,0},{0,1},{0,0},{0,0},{1,0},{0,1},{0,0},{0,1},{0,1},{1,0},{1,0},{1,0},{1,1},{1,1},{0,1},{0,1},{1,1},{0,1},{1,1},{1,0},{0,1},{1,1},{0,0},{1,0},{1,1},{1,1},{0,1},{1,1},{0,1},{1,1},{0,1},{0,1},{0,1},{1,1},{0,0},{0,1},{1,0},{0,0},{1,1},{0,0},{0,1},{1,0},{1,0},{0,0},{1,1},{0,0},{1,0},{1,1},{0,1},{1,1},{1,0},{0,1},{0,0},{0,1},{0,0},{1,1},{1,1},{1,0},{0,0},{1,1},{1,1},{0,0},{1,0},{1,0},{1,0},{1,0},{1,1},{1,1},{0,1},{1,1},{1,1},{0,1},{0,1},{1,1},{0,0},{1,0},{1,1},{0,0},{0,1},{0,0},{1,0},{1,1},{1,1},{0,0},{0,0},{1,1},{1,1},{1,0},{0,0},{0,1},{1,1},{1,1},{0,1},{1,0},{0,0},{1,1},{1,1},{1,0},{0,0},{1,1},{0,1},{0,0},{1,0},{1,0},{1,1},{1,0},{1,0},{0,1},{0,1},{0,0},{0,0},{0,1},{0,1},{1,0},{1,0},{0,0},{0,0},{1,1},{1,0},{1,1},{0,1},{0,0},{0,0},{1,0},{0,0},{0,1},{1,1},{1,1},{1,1},{1,1},{1,1},{0,0},{1,0},{1,0},{0,0},{1,1},{1,0},{1,1},{0,0},{1,1},{1,1},{1,1},{1,0},{0,0},{1,0},{1,0},{0,1},{0,1},{0,0},{1,0},{0,0},{0,0},{1,0},{0,1},{0,0},{0,1},{0,1},{0,0},{1,1},{0,1},{0,1},{0,0},{1,1},{1,1},{0,0},{0,1},{0,1},{0,0},{1,1},{1,0},{0,0},{1,1},{0,0},{0,1},{0,1},{0,0},{0,1},{0,1},{0,1},{0,0},{1,0},{1,1},{0,0},{1,1},{0,1},{1,0},{1,1},{0,1},{0,1},{1,1},{1,0},{0,1},{0,1},{0,1},{1,1},{1,1},{1,0},{0,1},{1,1},{0,0},{0,0},{1,1},{0,0},{1,1},{1,1},{1,0},{0,0},{0,1},{0,0},{0,0},{1,1},{0,1},{0,1},{0,0},{0,0},{1,1},{1,1},{0,1},{0,0},{0,0},{0,0},{0,0},{1,1},{0,1},{1,1},{1,0},{1,0},{1,1},{0,1},{0,1},{1,0},{1,1},{1,0},{1,0},{1,0},{1,1},{0,0},{0,0},{0,1},{1,0},{0,0},{0,1},{0,0},{1,1},{0,0},{1,1},{0,1},{0,1},{0,1},{1,0},{1,1},{1,0},{0,0},{1,0},{1,1},{1,0},{1,0},{0,0},{1,0},{1,1},{0,0},{0,0},{1,1},{0,0},{0,0},{1,0},{1,0},{0,1},{1,0},{0,0},{0,0},{1,0},{1,0},{0,0},{1,1},{0,0},{1,1},{0,0},{1,0},{0,1},{1,0},{0,1},{1,1},{0,1},{0,1},{0,0},{1,1},{1,1},{0,1},{1,0},{0,1},{0,1},{0,1},{0,0},{0,1},{0,1},{1,0},{1,0},{0,1},{1,0},{0,0},{0,1},{1,1},{0,1},{0,0},{1,1},{0,0},{0,0},{0,0},{0,1},{1,0},{0,1},{1,0},{1,1},{1,0},{0,1},{1,1},{0,0},{0,1},{0,1},{0,0},{0,0},{1,1},{0,1},{1,1},{0,0},{1,1},{1,0},{0,1},{1,1},{0,1},{0,0},{1,0},{1,1},{0,0},{1,1},{1,1},{1,1},{0,1},{1,0},{1,1},{1,1},{1,0},{1,1},{1,1},{0,1},{1,1},{1,0},{1,1},{1,0},{0,0},{0,0},{0,0},{1,0},{1,1},{1,0},{1,0},{0,0},{0,1},{0,0},{1,1},{1,0},{1,0},{0,1},{1,0},{1,1},{1,1},{0,0},{1,1},{1,1},{0,0},{0,1},{1,0},{0,1},{0,0},{1,0},{0,0},{0,0},{0,1},{1,0},{0,1},{0,1},{0,0},{0,1},{0,1},{0,0},{1,0},{1,1},{0,1},{1,1},{0,0},{0,1},{0,0},{1,1},{1,0},{1,0},{1,1},{0,0},{0,1},{1,1},{1,1},{1,0},{0,1},{1,0},{1,1},{0,1},{0,0},{1,1},{1,1},{0,0},{1,0},{0,0},{0,1},{1,1},{1,1},{1,1},{1,0},{0,1},{0,0},{1,1},{1,0},{1,0},{1,1},{0,0},{0,0},{1,0},{0,0},{1,0},{0,0},{1,0},{1,1},{1,0},{0,1},{0,0},{1,1},{0,0},{0,0},{0,1},{0,0},{1,1},{1,1},{1,1},{1,0},{1,1},{1,1},{1,1},{1,0},{1,1},{1,1},{0,1},{1,1},{0,0},{0,1},{1,1},{1,1},{1,1},{0,0},{1,0},{0,1},{1,0},{0,0},{1,1},{0,1},{0,1},{0,1},{1,1},{1,0},{0,0},{0,1},{0,0},{0,1},{1,0},{1,0},{1,1},{0,0},{0,1},{1,1},{0,0},{1,0},{0,1},{1,0},{1,0},{0,0},{0,0},{1,1},{1,0},{1,1},{1,0},{0,1},{0,0},{1,1},{0,0},{0,0},{0,0},{1,0},{1,1},{0,0},{0,0},{1,1},{1,0},{1,1},{0,0},{0,1},{0,0},{1,0},{0,1},{0,1},{0,1},{0,0},{1,1},{0,0},{1,1},{1,1},{0,1},{1,0},{0,1},{0,1},{0,0},{0,0},{0,1},{1,1},{0,0},{0,0},{1,0},{0,1},{1,0},{0,1},{0,0},{0,0},{1,1},{1,1},{1,0},{1,0},{1,1},{0,1},{0,1},{1,1},{0,1},{0,1},{0,0},{1,1},{1,1},{1,0},{0,1},{0,0},{1,0},{0,1},{1,1},{0,0},{1,1},{0,0},{1,1},{0,1},{1,1},{1,0},{1,1},{1,0},{1,0},{1,1},{1,0},{1,0},{1,0},{1,1},{1,1},{1,0},{1,0},{0,1},{1,0},{0,1},{0,1},{1,1},{0,0},{1,1},{0,1},{0,0},{1,1},{0,0},{0,1},{1,0},{0,0},{1,1},{1,0},{1,0},{0,1},{0,1},{1,0},{1,1},{1,0},{1,0},{1,1},{0,0},{0,1},{1,1},{1,1},{1,0},{1,0},{1,1},{1,0},{0,0},{1,0},{0,1},{0,1},{1,1},{0,1},{1,1},{0,1},{0,1},{0,1},{1,0},{1,1},{0,0},{1,1},{1,0},{0,0},{1,1},{0,1},{0,0},{0,0},{1,1},{1,1},{0,1},{0,0},{1,0},{1,0},{1,0},{0,1},{1,1},{1,1},{1,1},{1,0},{1,0},{0,1},{0,0},{0,0},{0,1},{1,0},{0,1},{0,1},{0,1},{1,0},{1,1},{0,0},{1,1},{0,0},{1,1},{0,1},{1,0},{0,1},{1,1},{1,0},{0,0},{0,1},{0,1},{0,0},{1,1},{0,0},{1,0},{1,1},{1,0},{0,1},{0,1},{0,0},{0,0},{0,1},{0,1},{0,1},{1,1},{1,1},{0,1},{0,1},{0,0},{1,0},{1,1},{1,0},{1,0},{1,0},{1,0},{1,0},{0,1},{1,0},{1,0},{0,0},{0,0},{0,0},{1,0},{0,1},{1,0},{1,1},{1,1},{1,0},{0,1},{0,0},{0,1},{1,0},{0,1},{1,1},{1,0},{0,0},{0,0},{0,0},{1,0},{0,1},{0,1},{1,0},{0,1},{0,1},{0,1},{0,0},{0,1},{0,1},{1,1},{0,0},{1,0},{0,0},{0,1},{1,0},{0,0},{1,0},{1,0},{1,1},{1,0},{1,0},{1,1},{0,1},{1,1},{1,1},{1,1},{0,1},{1,1},{0,0},{1,0},{0,0},{1,1},{0,1},{1,1},{1,1},{0,1},{0,0},{1,1},{1,0},{1,1},{1,0},{1,1},{0,1},{0,1},{0,1},{0,1},{1,1},{1,0},{1,1},{1,1},{0,0},{0,0},{0,1},{0,1},{1,1},{0,0},{1,0},{0,1},{0,0},{0,0},{1,1},{1,1},{0,0},{0,0},{1,0},{0,0},{1,1},{0,0},{1,0},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{1,1},{0,0},{1,1},{1,1},{1,0},{1,0},{0,0},{1,0},{1,1},{1,0},{0,0},{1,1},{0,0},{0,1},{0,0},{0,0},{0,0},{1,0},{1,1},{0,0},{1,1},{0,0},{0,1},{0,1},{1,0},{1,1},{0,1},{1,1},{0,1},{1,1},{1,0},{1,0},{1,0},{0,1},{0,0},{0,1},{0,0},{1,1},{1,0},{0,1},{0,1},{0,0},{0,0},{0,0},{0,0},{1,1},{1,1},{1,1},{1,1},{1,1},{1,0},{1,0},{1,0},{1,1},{1,0},{1,1},{0,0},{0,1},{1,0},{0,0},{1,0},{0,0},{1,1},{0,1},{1,0},{1,0},{0,1},{0,1},{1,0},{1,1},{1,0},{1,0},{0,0},{1,1},{0,0},{1,0},{1,1},{0,1},{0,0},{0,1},{0,0},{0,1},{1,0},{1,0},{1,1},{1,1},{1,0},{1,1},{1,0},{1,0},{1,0},{1,0},{0,0},{1,0},{0,1},{0,1},{1,1},{1,0},{0,0},{1,0},{1,0},{0,1},{0,0},{1,0},{0,1},{1,1},{0,1},{0,1},{1,1},{1,1},{0,1},{1,0},{1,0},{0,1},{0,0},{1,1},{0,1},{0,1},{1,0},{0,1},{0,1},{1,1},{0,0},{0,0},{0,1},{0,1},{1,1},{1,0},{1,0},{1,1},{1,1},{1,1},{1,0},{1,1},{0,0},{0,1},{0,0},{0,1},{1,0},{0,1},{0,1},{1,0},{0,1},{1,1},{0,0},{0,1},{0,1},{1,1},{1,0},{1,0},{0,0},{1,0},{1,0},{1,1},{1,1},{1,1},{1,0},{1,0},{1,0},{1,0},{0,0},{0,0},{0,1},{0,1},{1,0},{1,0},{1,0},{1,1},{1,0},{0,1},{0,1},{1,0},{1,0},{1,0},{1,1},{0,1},{0,1},{1,0},{1,1},{1,1},{0,0},{1,0},{1,0},{1,1},{0,1},{1,1},{1,1},{1,0},{0,0},{1,1},{1,1},{1,1},{0,0},{0,1},{0,1},{0,1},{0,1},{0,0},{1,0},{1,0},{0,1},{1,1},{0,0},{1,0},{1,0},{1,1},{0,0},{1,1},{1,0},{0,0},{1,1},{1,1},{0,1},{1,0},{0,1},{0,1},{0,0},{1,1},{0,1},{1,0},{0,1},{0,0},{1,1},{0,0},{1,1},{1,0},{0,1},{1,1},{0,1},{0,1},{1,1},{1,0},{0,0},{0,0},{1,1},{1,1},{0,1},{0,0},{0,1},{1,0},{0,1},{1,0},{0,0},{0,0},{1,0},{0,0},{1,0},{1,1},{0,0},{1,1},{1,0},{0,0},{0,1},{1,0},{1,1},{0,0},{0,0},{1,0},{0,0},{1,1},{1,0},{1,1},{0,0},{1,1},{1,0},{0,1},{0,0},{1,0},{1,1},{1,0},{0,1},{1,0},{1,0},{0,0},{1,0},{1,1},{1,1},{1,1},{1,1},{0,0},{1,0},{0,1},{0,1},{1,1},{0,1},{0,0},{0,1},{0,0},{1,1},{0,1},{1,0},{0,0},{0,1},{0,0},{1,1},{0,1},{1,1},{0,1},{1,0},{1,1},{0,1},{0,1},{1,0},{0,0},{1,1},{1,0},{1,1},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{1,0},{0,1},{0,0},{1,0},{1,1},{0,1},{0,1},{1,1},{0,1},{0,0},{0,0},{1,0},{0,0},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{0,1},{1,1},{1,1},{1,0},{0,1},{1,0},{1,1},{0,1},{1,0},{1,1},{1,0},{0,0},{0,1},{1,0},{0,1},{0,0},{1,1},{0,1},{1,1},{0,1},{1,0},{1,1},{0,0},{0,1},{1,1},{1,0},{0,0},{1,1},{1,1},{0,1},{1,1},{0,1},{1,0},{0,1},{1,1},{0,0},{0,1},{1,0},{1,0},{1,1},{1,0},{1,0},{0,0},{0,0},{0,1},{1,1},{1,0},{0,0},{0,1},{1,1},{1,0},{0,1},{0,0},{1,1},{0,1},{0,1},{0,0},{1,1},{1,1},{0,0},{0,1},{1,1},{1,0},{1,0},{1,1},{1,0},{1,0},{1,0},{1,0},{0,0},{1,0},{1,0},{1,1},{0,1},{1,1},{0,0},{0,0},{0,1},{1,0},{0,1},{0,1},{0,1},{1,0},{0,1},{1,0},{0,0},{0,1},{0,1},{1,0},{0,0},{0,1},{1,1},{1,0},{1,0},{1,0},{0,1},{1,1},{0,1},{0,0},{0,1},{0,0},{0,1},{1,0},{1,0},{1,0},{0,0},{0,0},{0,0},{1,0},{0,0},{0,1},{0,1},{0,0},{1,1},{0,0},{1,1},{0,0},{1,0},{1,1},{1,0},{1,0},{1,1},{0,1},{1,0},{1,0},{0,0},{0,0},{0,1},{0,0},{0,1},{1,1},{1,0},{0,1},{0,1},{1,1},{0,0},{0,1},{0,1},{0,0},{0,0},{1,0},{1,1},{1,1},{0,0},{0,0},{0,1},{0,1},{1,0},{0,0},{1,1},{1,0},{0,1},{1,1},{0,0},{1,0},{0,1},{1,0},{1,1},{1,1},{1,1},{1,0},{0,1},{0,0},{0,0},{1,1},{1,0},{1,1},{1,0},{1,1},{0,1},{1,1},{1,0},{0,0},{1,0},{0,1},{0,0},{0,0},{1,0},{0,1},{0,0},{0,1},{0,1},{1,1},{1,1},{1,1},{0,0},{1,1},{1,1},{0,0},{0,1},{0,1},{0,1},{1,1},{0,0},{0,0},{0,0},{1,1},{0,1},{0,0},{1,0},{1,0},{1,1},{1,1},{0,1},{0,1},{1,0},{1,1},{0,1},{0,0},{0,0},{1,0},{0,0},{1,1},{1,1},{0,0},{0,1},{1,1},{0,1},{1,1},{1,0},{1,1},{0,1},{1,0},{1,1},{1,0},{1,1},{0,1},{0,0},{0,1},{1,1},{0,0},{1,0},{0,0},{1,0},{1,0},{1,1},{0,1},{1,1},{0,1},{0,0},{1,0},{0,0},{0,1},{0,0},{0,1},{0,1},{0,0},{1,1},{1,0},{1,0},{0,1},{0,0},{0,1},{1,1},{0,1},{1,0},{0,1},{0,0},{0,1},{0,0},{0,0},{1,0},{0,1},{0,0},{0,0},{0,1},{1,1},{1,0},{1,0},{0,1},{0,0},{1,0},{0,1},{0,0},{1,1},{1,0},{0,0},{0,0},{0,0},{0,1},{0,0},{0,0},{1,1},{0,1},{0,0},{1,1},{0,0},{1,1},{1,1},{1,1},{1,0},{1,1},{1,0},{1,1},{0,0},{1,0},{0,1},{1,1},{0,0},{0,0},{1,1},{1,1},{0,0},{1,1},{1,1},{1,0},{0,0},{0,0},{0,0},{1,0},{0,0},{1,1},{0,0},{0,0},{1,0},{1,0},{0,0},{0,1},{0,1},{0,1},{1,1},{1,1},{0,1},{1,0},{1,1},{0,1},{1,1},{1,1},{0,1},{0,1},{0,0},{1,1},{0,0},{0,1},{1,0},{0,1},{1,0},{0,0},{0,1},{1,1},{0,0},{1,0},{0,1},{0,1},{0,0},{0,0},{0,0},{0,0},{1,1},{1,0},{1,1},{1,0},{1,1},{1,1},{0,1},{0,1},{1,1},{0,1},{0,1},{0,0},{0,1},{1,1},{1,1},{1,1},{1,1},{0,0},{0,1},{0,0},{0,0},{1,0},{0,1},{0,0},{1,0},{0,0},{0,0},{1,1},{0,0},{0,0},{0,0},{0,0},{1,1},{1,1},{0,1},{1,1},{1,0},{1,0},{0,0},{1,1},{1,1},{0,1},{1,1},{0,0},{0,1},{0,0},{0,1},{1,1},{1,0},{0,0},{1,0},{1,1},{1,0},{1,1},{0,0},{0,0},{0,0},{0,1},{1,0},{1,1},{0,1},{1,1},{0,0},{1,1},{0,0},{0,0},{1,1},{1,1},{1,0},{1,0},{0,1},{0,1},{0,1},{0,0},{0,0},{0,1},{0,0},{0,1},{0,0},{1,0},{1,1},{0,0},{1,0},{1,1},{0,1},{1,0},{0,1},{1,0},{0,0},{1,0},{0,1},{0,1},{1,1},{0,0},{0,1},{1,0},{0,1},{1,1},{0,0},{0,1},{0,0},{1,1},{1,0},{0,1},{1,1},{0,0},{0,0},{1,0},{0,1},{1,0},{0,1},{1,1},{0,1},{0,1},{0,0},{1,0},{1,0},{1,0},{0,1},{0,1},{1,0},{0,1},{1,1},{1,0},{1,1},{1,1},{1,0},{0,0},{1,1},{1,0},{1,1},{1,0},{1,1},{0,1},{1,1},{1,0},{1,1},{0,1},{1,0},{0,0},{1,1},{0,0},{0,0},{0,1},{1,1},{1,1},{0,1},{0,0},{1,0},{0,0},{1,1},{1,0},{0,1},{1,1},{1,1},{0,0},{0,1},{0,0},{0,0},{1,0},{1,1},{0,1},{0,1},{1,1},{1,1},{1,1},{0,1},{1,0},{0,0},{0,1},{1,1},{0,1},{0,0},{1,0},{0,1},{1,0},{0,0},{0,0},{1,1},{1,0},{1,1},{1,0},{1,0},{0,1},{0,0},{1,1},{1,0},{1,0},{1,0},{1,1},{0,0},{0,0},{0,0},{1,0},{0,1},{1,1},{0,1},{1,1},{1,0},{0,0},{0,0},{1,0},{0,1},{1,1},{0,0},{1,0},{0,0},{1,0},{1,1},{1,0},{1,1},{1,0},{0,1},{0,0},{1,0},{0,0},{0,0},{0,0},{0,1},{0,1},{1,0},{0,1},{1,0},{0,1},{1,1},{1,1},{0,0},{0,0},{0,1},{1,0},{1,1},{1,1},{1,1},{0,1},{0,1},{0,1},{1,1},{1,0},{0,1},{0,1},{1,0},{0,1},{1,1},{0,1},{1,0},{0,1},{0,0},{0,0},{0,1},{1,0},{1,1},{0,0},{1,0},{0,0},{1,0},{0,1},{1,1},{1,1},{0,0},{1,0},{1,1},{1,1},{1,1},{0,0},{1,0},{1,0},{0,1},{0,0},{1,0},{1,0},{1,1},{0,1},{1,0},{1,0},{0,0},{0,1},{0,1},{1,1},{0,1},{0,0},{1,0},{1,0},{1,1},{1,1},{0,0},{0,0},{0,1},{0,0},{0,1},{0,1},{0,0},{1,0},{1,1},{0,1},{0,1},{0,1},{0,0},{0,1},{0,1},{1,1},{1,1},{1,0},{1,1},{1,0},{1,0},{1,0},{0,1},{0,0},{1,0},{1,0},{1,0},{1,0},{0,1},{0,0},{1,0},{1,0},{0,0},{1,0},{1,1},{1,0},{1,0},{1,0},{0,0},{1,1},{0,0},{0,0},{1,0},{0,0},{1,1},{1,1},{1,0},{1,0},{1,0},{1,1},{1,1},{1,0},{0,1},{0,1},{1,1},{1,0},{0,1},{0,0},{0,1},{0,1},{0,0},{1,1},{1,0},{1,0},{0,1},{0,0},{1,1},{1,1},{1,0},{0,1},{1,0},{1,1},{1,0},{0,0},{1,1},{0,1},{0,0},{0,0},{1,0},{0,0},{1,0},{0,1},{1,1},{1,0},{1,1},{1,1},{1,1},{0,1},{0,0},{0,0},{0,0},{1,1},{0,0},{1,1},{1,1},{1,1},{0,0},{1,0},{0,0},{0,1},{1,1},{1,1},{1,0},{1,0},{0,1},{0,1},{0,0},{1,0},{1,0},{1,1},{1,0},{0,1},{1,1},{0,1},{0,0},{0,1},{0,1},{0,0},{0,1},{1,1},{1,0},{0,0},{1,0},{0,0},{1,0},{1,0},{0,0},{1,1},{0,1},{0,1},{1,0},{0,1},{0,1},{0,1},{1,0},{1,0},{0,0},{0,1},{0,1},{1,0},{1,1},{0,1},{0,1},{1,1},{1,0},{1,0},{1,1},{0,1},{1,0},{1,1},{0,0},{1,1},{1,0},{0,1},{0,1},{1,1},{1,1},{1,1},{0,0},{0,0},{1,0},{0,1},{0,1},{0,1},{0,0},{0,1},{1,1},{1,1},{1,1},{1,0},{0,1},{0,0},{0,1},{1,1},{0,0},{0,0},{1,0},{1,1},{1,0},{0,0},{0,1},{1,1},{0,0},{0,0},{1,1},{0,0},{0,0},{1,1},{1,0},{0,0},{1,1},{0,0},{1,0},{0,0},{1,1},{0,0},{1,1},{1,1},{0,1},{1,1},{1,0},{1,0},{1,1},{0,1},{0,1},{1,1},{0,0},{1,1},{1,1},{1,1},{0,0},{0,1},{0,1},{1,0},{1,1},{0,0},{1,0},{1,0},{0,1},{1,0},{0,0},{0,1},{1,0},{1,1},{0,1},{1,0},{0,0},{0,1},{0,1},{1,0},{0,1},{1,1},{0,1},{0,1},{0,0},{1,0},{0,1},{0,0},{0,1},{1,1},{0,1},{1,0},{1,0},{1,0},{0,0},{0,0},{1,0},{1,0},{0,0},{1,0},{1,1},{1,1},{1,0},{0,1},{0,0},{0,1},{0,0},{1,1},{0,0},{1,1},{1,1},{0,1},{0,1},{0,0},{1,1},{0,1},{0,1},{1,1},{0,0},{0,0},{1,0},{0,0},{1,1},{0,1},{1,1},{1,0},{1,1},{0,0},{0,1},{1,1},{1,0},{1,1},{1,0},{0,1},{0,1},{1,0},{1,1},{0,1},{1,1},{0,1},{1,0},{1,0},{0,1},{0,1},{0,0},{0,1},{1,0},{1,1},{0,1},{1,1},{0,1},{0,0},{0,0},{1,0},{0,1},{1,0},{1,1},{1,0},{1,1},{1,0},{0,0},{1,0},{0,1},{0,0},{0,0},{1,0},{1,0},{1,1},{1,1},{1,0},{0,0},{0,0},{0,0},{1,1},{0,0},{0,1},{0,0},{1,0},{0,0},{1,0},{1,1},{1,1},{1,0},{1,0},{0,0},{1,0},{0,0},{0,0},{1,0},{0,0},{1,0},{0,1},{1,0},{1,0},{0,0},{1,0},{1,0},{0,0},{1,1},{0,1},{1,1},{1,0},{0,0},{1,0},{0,0},{1,0},{0,1},{0,0},{0,1},{1,1},{0,0},{1,0},{1,1},{1,0},{0,1},{1,1},{0,1},{1,0},{0,0},{1,1},{0,0},{1,1},{0,1},{1,0},{0,0},{0,0},{1,0},{1,0}}; using T = std::pair<int, int>; std::sort(std::begin(x), std::end(x), [](const T& a, const T& b) { return a.first < b.first; }); for(const auto& y : x) std::cout << y.first << ',' << y.second << '\n'; }
run
|
edit
|
history
|
help
0
HTML Timetable generator.cpp
Te
Last Class Quiz - Working with Hash Table
Range List for C++
Throttle Example in C++ (80 requests every 2 seconds)
Assignment Operator Example
my override
khcmknhc
Fun with Pointers #2
12/2