Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- #include<iomanip>
- #include<algorithm>
- #include<cstdlib>
- #include<cstring>
- #include<vector>
- #include<utility>
- #define ll long long
- #define sz(x) int(x.size())
- #define all(x) x.begin(),x.end()
- using namespace std;
- void Fast_IO(){
- ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- void solve(){
- vector<pair<int, int>> p(3);
- for (int i = 0; i < 3; i++)
- {
- cin >> p[i].first >> p[i].second;
- }
- sort(all(p));
- cout << 3 << endl;
- cout << p[0].first << ' ' << p[0].second << ' ' << p[1].first << ' ' << p[0].second << '\n';
- cout << p[2].first << ' ' << p[2].second << ' ' << p[1].first << ' ' << p[2].second << '\n';
- cout << p[1].first << ' ' << max({p[0].second, p[1].second, p[2].second}) << ' ' << p[1].first << ' '<< min({p[0].second, p[1].second, p[2].second}) << '\n';
- }
- int main(){
- Fast_IO();
- int t =1;
- // cin>>t;
- while(t--){
- solve();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment