版本比较
题解:P9346 无可奈何花落去
正文
增加 6 行删除 6 行
14 行未改动15161718192021222324252627282930313233343536373839404142434494 行未改动14 行未改动code:```cpp#include <bits/stdc++.h>using namespace std;// #define int long long#define fir first#define sec second#define mkp make_pair#define pb push_back#define lep( i, l, r ) for ( int i = ( l ); i <= ( r ); ++ i )#define rep( i, r, l ) for ( int i = ( r ); i >= ( l ); -- i )typedef long long ll;typedef long double ld;typedef unsigned long long ull;typedef pair < int, int > pii;char _c; bool _f; template < class type > inline void read ( type &x ) {_f = 0, x = 0;while ( _c = getchar (), !isdigit ( _c ) ) if ( _c == '-' ) _f = 1;while ( isdigit ( _c ) ) x = x * 10 + _c - '0', _c = getchar (); if ( _f ) { x = -x; }}template < class type > inline void chkmin ( type &x, type y ) { x = ( x <= y ? x : y ); }template < class type > inline void chkmax ( type &x, type y ) { x = ( x >= y ? x : y ); }const int N = 5005;94 行未改动14 行未改动15161718192021222324252627282930313233343536373839404142434494 行未改动14 行未改动code:```cpp#include <bits/stdc++.h>using namespace std;// #define int long long#define fir first#define sec second#define mkp make_pair#define pb push_back#define lep( i, l, r ) for ( int i = ( l ); i <= ( r ); ++ i )#define rep( i, r, l ) for ( int i = ( r ); i >= ( l ); -- i )typedef long long ll;typedef long double ld;typedef unsigned long long ull;typedef pair < int, int > pii;char _c; bool _f; template < class type > inline void read ( type &x ) {_f = 0, x = 0;while ( _c = getchar (), !isdigit ( _c ) ) if ( _c == '-' ) _f = 1;while ( isdigit ( _c ) ) x = x * 10 + _c - '0', _c = getchar (); if ( _f ) { x = -x; }}template < class type > inline void chkmin ( type &x, type y ) { x = ( x <= y ? x : y ); }template < class type > inline void chkmax ( type &x, type y ) { x = ( x >= y ? x : y ); }const int N = 5005;94 行未改动