题解:P12404 「CZOI-R3」可爱棉羊
赛时只有
首先看最大值,我们一开始感染了
最小值就显而易见了,除了
#include<bits/stdc++.h>
using ll = long long;
using namespace std;
signed main() {
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
ll n, t, x;
cin >> n >> t >> x;
cout << min(x * t * 2, n) << ' ';
if (x > 1) cout << min(n, x);
else cout << x + 1;
return 0;
}