cf/mirror

Sereja and Two Sequences

CF
425C2300· international master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5 5 100000 1000
1 2 3 4 5
3 2 4 5 1
Output
3
Sample 2of 2
Input
3 4 3006 1000
1 2 3
1 2 4 3
Output
2
425C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)