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
Bubble Sort Example
C++ Operator Overloading
unordered graphs search
Random values and probability distribution
6 7
Dash-D compiler flag example
Merge Sort
Peregruzka
hello,world !ssn2019
SubsequenceArray