| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 17 | 13 | 13 | 76.471% |
The Simpson's Paradox is a phenomenon in statistics where a trend or pattern that appears in different groups of data is inconsistent (disappears or even reverses) with what we see when the groups are combined. It is named after the British statistician Edward H. Simpson, who described it in 1951, although similar observations had been made earlier.
For example, let assume that two teams have been training for the UKIEPC 2024 and have the following statistics for the graph and geometry problems:
If we look per category --- team X has higher success rate in both categories, but when looking in combination, the pattern reverses, and team Y appears to have higher success rate.
In this problem you are to construct an example of the dataset illustrating the Simpson’s paradox. More specifically, let us assume (similarly to the example above) that there are two teams who have been solving problems of $N$ categories and the total number of problems solved by each of the teams is $M$. Let us denote the number of the problems in $i$-th category solved by Team X as $a_i,ドル attempted --- by $b_i$. Similarly, let us define $c_i$ as the number of problems solved by Team Y in the $i$-th category and $d_i$ as the number of problems attempted.
You are to find such $a_i,ドル $b_i,ドル $c_i$ and $d_i$ that:
Input file contains two integer numbers $N$ and $M$ (2ドル \le N \le 10000,ドル 4ドル*N \le M \le 10^5$).
Output $N$ lines --- $i$-th of them should contain four positive integer numbers $a_i,ドル $b_i,ドル $c_i,ドル $d_i,ドル describing the dataset. Input data is selected in such a way that the solution exists.
2 350
81 87 234 270 192 263 55 80
ICPC > Regionals > Europe > Northwestern European Regional Contest > The UK & Ireland Programming Contest > UKIEPC 2024 I번