2023-03-08 13:59:40 +00:00
|
|
|
import java.util.Vector;
|
|
|
|
import java.lang.Boolean;
|
|
|
|
import java.lang.Object;
|
|
|
|
|
|
|
|
|
2024-03-11 15:16:10 +00:00
|
|
|
class Pair<T, U> {
|
|
|
|
T x;
|
|
|
|
U y;
|
2023-03-08 13:59:40 +00:00
|
|
|
|
2024-03-11 15:16:10 +00:00
|
|
|
fst () {
|
|
|
|
return x;
|
|
|
|
}
|
2023-03-08 13:59:40 +00:00
|
|
|
|
2024-03-11 15:16:10 +00:00
|
|
|
snd () {
|
|
|
|
return y;
|
2023-03-08 13:59:40 +00:00
|
|
|
}
|
|
|
|
}
|