题解:CF2094B Bobritto Bandito
一道模拟题,但是不用真正模拟。观察以后发现,如果
注:本题我认为描述不严谨,并不是输出在
代码如下:
#include<bits/stdc++.h>
using namespace std;
int t,n,m,k,l,r;
string s;
int main()
{
cin>>t;
while(t--)
{
cin>>n>>m>>l>>r;
if(r>=m) cout<<0<<" "<<m<<endl;
else if(l<=-m) cout<<-m<<" 0\n";
else cout<<l<<" "<<m+l<<endl;
}
return 0;
}