题解 | #挂科#
挂科
https://ac.nowcoder.com/acm/contest/18839/1046
#include<iostream> using namespace std; #include<algorithm> int main() { int a,b,c,x,y; cin>>a>>b>>c; x=min(b,c); if(b+c<=a) y=0; else{y=b+c-a;} cout<<x<<" "<<y; }
挂科
https://ac.nowcoder.com/acm/contest/18839/1046
#include<iostream> using namespace std; #include<algorithm> int main() { int a,b,c,x,y; cin>>a>>b>>c; x=min(b,c); if(b+c<=a) y=0; else{y=b+c-a;} cout<<x<<" "<<y; }
相关推荐