为啥只有80%呢?
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
if(k == 0 || n == k) {
cout << 0 << " " << 0 << endl;
} else if(3 * k <= n) {
cout << 1 << " " << 2 * k << endl;
} else if(3 * k > n){
cout << 1 << " " << n - k << endl;
}
return 0;
}
using namespace std;
int main() {
int n, k;
cin >> n >> k;
if(k == 0 || n == k) {
cout << 0 << " " << 0 << endl;
} else if(3 * k <= n) {
cout << 1 << " " << 2 * k << endl;
} else if(3 * k > n){
cout << 1 << " " << n - k << endl;
}
return 0;
}