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
SimpleList Example
Argument passing by using reference and value
(non?)-template template parameters for container stream insertion
Saam hash example
HTML Timetable generator.cpp
Dequeue Array-Based Example
constructor-is-not-called-in-this-aggregation-class
NaN inside set
Enum flags operator example
Calculate H.C.F using recursion