@@ -8,28 +8,28 @@ struct Fast {
88} fast;
99
1010template <class T1 , class T2 >
11- istream & operator >>(istream & is, pair<T1, T2> & p) {
11+ istream& operator >>(istream& is, pair<T1, T2>& p) {
1212 return is >> p.first >> p.second ;
1313}
1414template <class T1 , class T2 >
15- ostream & operator <<(ostream & os, const pair<T1, T2> & p) {
15+ ostream& operator <<(ostream& os, const pair<T1, T2>& p) {
1616 return os << p.first << " " << p.second ;
1717}
1818template <class T >
19- istream & operator >>(istream & is, vector<T> & a) {
20- for (auto & v : a) is >> v;
19+ istream& operator >>(istream& is, vector<T>& a) {
20+ for (auto & v : a) is >> v;
2121 return is;
2222}
2323template <class T >
24- ostream & operator <<(ostream & os, const vector<T> & a) {
24+ ostream& operator <<(ostream& os, const vector<T>& a) {
2525 for (auto it = a.begin (); it != a.end ();) {
2626 os << *it;
2727 if (++it != a.end ()) os << " " ;
2828 }
2929 return os;
3030}
3131template <class T >
32- ostream & operator <<(ostream & os, const set<T> & st) {
32+ ostream& operator <<(ostream& os, const set<T>& st) {
3333 os << " {" ;
3434 for (auto it = st.begin (); it != st.end ();) {
3535 os << *it;
@@ -39,7 +39,7 @@ ostream &operator<<(ostream &os, const set<T> &st) {
3939 return os;
4040}
4141template <class T1 , class T2 >
42- ostream & operator <<(ostream & os, const map<T1, T2> & mp) {
42+ ostream& operator <<(ostream& os, const map<T1, T2>& mp) {
4343 os << " {" ;
4444 for (auto it = mp.begin (); it != mp.end ();) {
4545 os << it->first << " :" << it->second ;
@@ -51,13 +51,13 @@ ostream &operator<<(ostream &os, const map<T1, T2> &mp) {
5151
5252void in () {}
5353template <typename T, class ... U>
54- void in (T & t, U &...u) {
54+ void in (T& t, U&... u) {
5555 cin >> t;
5656 in (u...);
5757}
5858void out () { cout << " \n " ; }
5959template <typename T, class ... U, char sep = ' ' >
60- void out (const T & t, const U &...u) {
60+ void out (const T& t, const U&... u) {
6161 cout << t;
6262 if (sizeof ...(u)) cout << sep;
6363 out (u...);
0 commit comments