Vanished Without a Trace
Time limit1sMemory limit1024 MB
Given arrays A and B of N integers each (N up to 9), print the smaller of X and Y, or the shared value if they are equal. The statement never defines X or Y.
- Level
Easy2 of 10
- Topics
- Implementation
- Solved
- No attempts yet
문제
How should '온데간데없을뿐더러' be spaced? The adjective '온데간데없다' and the ending '-을뿐더러' combine, so it is written without a space as '온데간데없을뿐더러'.
입력
The first line contains , the number of elements in each array.
The second line contains the elements of array , , separated by spaces.
The third line contains the elements of array , , separated by spaces.
출력
Print the smaller of and . If and are equal, print that value.
제한
- Every number in the input is an integer.
힌트
and can be greater than , so store them as long long in C/C++ or as long in Java.