410286: GYM104002 A William and Mary
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. William and Marytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
William and Mary are trying to complete their HW. The last HW question asks to find the absolute difference between the maximum odd number and minimum even number in a list of numbers. Help William and Mary solve their last problem!
InputThe first and only line will contain $$$n$$$ integers $$$(1 \leq n \leq 10^5)$$$. All integers are at most $$$10^5$$$.
OutputOutput the absolute difference between the maximum odd number and minimum even number. If there is no even number or no odd number, print "None".
ExamplesInput1 2 3 4 5 6 7Output
5Input
1 1 1 1 1 1 1Output
None