Skip to content

Commit eedefb1

Browse files
committed
transfer
1 parent 1490863 commit eedefb1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vjudge/A0004/transfer.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
int f(int a, int b , int c){
4+
if(a-b < c) return c - (a-b);
5+
return 0;
6+
}
7+
int main(){
8+
int a,b,c;
9+
cin>>a>>b>>c;
10+
cout << f(a,b,c)<< endl;
11+
return 0;
12+
}

0 commit comments

Comments
 (0)