- 题解
F
- 2024-9-10 21:03:04 @
#include<bits/stdc++.h>
using namespace std;
int a,b,c,A,B;
int main ()
{
cin >> a >> b >> c;
if (b>a)
cout << "no" << endl;
else
{
cout << "yes" << endl;
if (c%2)
{
if (a>c/2)
{
cout << a-c/2 << ' ';
a=c/2;
}
else cout << 0 << ' ';
if (b>a) cout << 0 << endl;
else cout << a-b+1 << endl;
}
else
{
if (a>c/2-1)
{
cout << a-c/2+1 << ' ';
a=c/2-1;
}
else cout << 0 << ' ';
if (b>a) cout << 0 << endl;
else cout << a-b+1 << endl;
}
}
return 0;
}
0 comments
No comments so far...