Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem2108--ABC149B Greedy Takahashi
2108: ABC149B Greedy Takahashi
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Submit
Solved: 0
Submit Num: 0
Statistics
Description
Problem Statement
Takahashi has
A
cookies, and Aoki has
B
cookies. Takahashi will do the following action
K
times:
If Takahashi has one or more cookies, eat one of his cookies.
Otherwise, if Aoki has one or more cookies, eat one of Aoki's cookies.
If they both have no cookies, do nothing.
In the end, how many cookies will Takahashi and Aoki have, respectively?
Constraints
0
≤
A
≤
10
12
0
≤
B
≤
10
12
0
≤
K
≤
10
12
All values in input are integers.
Input
Input
Input is given from Standard Input in the following format:
A
B
K
Output
Output
Print the numbers of Takahashi's and Aoki's cookies after
K
actions.
Sample Input
Copy
2 3 3
Sample Output
Copy
0 2
Source/Category
AtCoder
强
基础
入门
if