#include using namespace std; int main(){ int n; cin >> n; int dp[n][1<> a[i] >> b[i]; for(int s = 0; s < 1<