#252. diff21
diff21
Background
Description
Given an int n, return the absolute difference between n and 21, except return double the absolute difference if n is over 21.
Format
Input
Output
Samples
19
2
10
11
21
0
Limitation
1s, 1024KiB for each test case.