美国计算机奥林匹克竞赛USACO 2月赛今天结束,少年创客营许多学员第一时间都通过了比赛,导师们第一时间为大家准备了考情解析,为学员们参加3月的OPEN组(3月27日-3月30日) 提供参考。USACO 的关注度和参与度每年都在增加,本赛季与去年相比,参与人数大幅度增加。2月竞赛时间是从2020年2月21日到2月24日。与往常一样,铜级考试在4小时内做3个问题30个测试案例。这次青铜级竞赛题目比1月的略简单。

Farmer John would like to create a triangular pasture for his cows.There are N fence posts (3≤N≤100) at distinct points (X1,Y1)…(XN,YN) on the 2D map of his farm. He can choose three of them to form the vertices of the triangular pasture as long as one of the sides of the triangle is parallel to the x-axis and another side is parallel to the y-axis.
What is the maximum area of a pasture that Farmer John can form? It is guaranteed that at least one valid triangular pasture exists.
INPUT FORMAT (file triangles.in):
The first line of the input contains the integer N. Each of the next N lines contains two integers Xi and Yi, each in the range −104…104 inclusive, describing the location of a fence post.
OUTPUT FORMAT (file triangles.out):
As the area itself is not necessarily an integer, output two timesthe maximum area of a valid triangle formed by the fence posts.
SAMPLE INPUT:
4
0 0
0 1
1 0
1 2
SAMPLE OUTPUT:
2
Posts at (0,0), (1,0), and (1,2) form a triangle of area 1. Thus, the answer is 2⋅1=2. There is only one other triangle, with area 0.5.


Farmer John's cousin Ben happens to be a mad scientist. Normally, this creates a good bit of friction at family gatherings, but it can occasionally be helpful, especially when Farmer John finds himself facing unique and unusual problems with his cows.Farmer John is currently facing a unique and unusual problem with his cows. He recently ordered NN cows (1≤N≤10001≤N≤1000) consisting of two different breeds: Holsteins and Guernseys. He specified the cows in his order in terms of a string of NNcharacters, each either H (for Holstein) or G (for Guernsey). Unfortunately, when the cows arrived at his farm and he lined them up, their breeds formed a different string from this original string.
Let us call these two strings AA and BB, where AA is the string of breed identifiers Farmer John originally wanted, and BB is the string he sees when his cows arrive. Rather than simply check if re-arranging the cows in BB is sufficient to obtain AA, Farmer John asks his cousin Ben to help him solve the problem with his scientific ingenuity.
After several months of work, Ben creates a remarkable machine, the multi-cow-breed-flipinator 3000, that is capable of taking any substring of cows and toggling their breeds: all Hs become Gs and all Gs become Hs in the substring. Farmer John wants to figure out the minimum number of times he needs to apply this machine to transform his current ordering BB into his original desired ordering AA. Sadly, Ben's mad scientist skills don't extend beyond creating ingenious devices, so you need to help Farmer John solve this computational conundrum.
INPUT FORMAT (file breedflip.in):
The first line of input contains NN, and the next two lines contain the strings AA and BB. Each string has NN characters that are either H or G.
OUTPUT FORMAT (file breedflip.out):
Print the minimum number of times the machine needs to be applied to transform BB into AA.
SAMPLE INPUT:
7
GHHHGHH
HHGGGHH
SAMPLE OUTPUT:
2
First, FJ can transform the substring that corresponds to the first character alone, transforming BB into


Farmer John's N cows (1≤N≤100) are standing in a line. The ith cow from the left has label i, for each 1≤i≤N.Farmer John has come up with a new morning exercise routine for the cows. He tells them to repeat the following two-step process exactly K (1≤K≤109) times:
The sequence of cows currently in positions A1…A2 from the left reverse their order (1≤A1<A2≤N).
Then, the sequence of cows currently in positions B1…B2 from the left reverse their order (1≤B1<B2≤N).
After the cows have repeated this process exactly K times, please output the label of the ith cow from the left for each 1≤i≤N.
SCORING:
Test cases 2-3 satisfy K≤100.
Test cases 4-13 satisfy no additional constraints.
INPUT FORMAT (file swap.in):
The first line of input contains N and K. The second line contains A1 and A2, and the third contains B1 and B2.
OUTPUT FORMAT (file swap.out):
On the ith line of output, print the label of the ith cow from the left at the end of the exercise routine.
SAMPLE INPUT:
7 2
2 5
3 7
SAMPLE OUTPUT:
1
2
4
3
5
7
6
Initially, the order of the cows is [1,2,3,4,5,6,7] from left to right. After the first step of the process, the order is [1,5,4,3,2,6,7]. After the second step of the process, the order is [1,5,7,6,2,3,4]. Repeating both steps a second time yields the output of the sample.

