Submission #1059465

#TimeUsernameProblemLanguageResultExecution timeMemory
1059465Roumak77Self Study (JOI22_ho_t2)Cpython 3
10 / 100
232 ms55532 KiB
import math def solve(): n, m = map(int, input().split()) list_1 = list(map(int, input().split())) list_2 = list(map(int, input().split())) curr_max = 0 curr_min = float('inf') for i in range(n): curr_max = max(curr_max, max(list_2[i], list_1[i])) curr_min = min(max(list_2[i], list_1[i]), curr_min) print(curr_min) solve()
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...