PROGRAMMING:Implementation of systematic clustering for variables
By comparing the quality of 10 kinds of coffee beans, 5 professionals scored the aroma, sweetness, acidity, alcohol thickness, flavor, aftertaste and balance of each kind of coffee. The lowest score was 1, and the highest score was 10. The average score of each index of each kind of coffee was obtained.
![ QQ screenshot 20210101162419. PNG] (~ / e051436d-292e-4a1d-bd06-a34c0d1ee3c. PNG)
The system clustering method was used to cluster the variables of the data (divided into two categories), the maximum distance method was selected, the distance judgment index was selected, the correlation coefficient was selected to judge whether the aroma and acid belong to the same category, and the results were output.
###Input format:
In the first line, enter all variable values (separated by spaces in the middle), for example: 4.65 6.32 4.87 4.88 6.73 7.45 8.18.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5 6.01 6.21 4.95 4.43 6.72 7.6 8 8.43 6 8.72 7.12 6 8.01 8.12 6.52 7.42 4.5 6 6 6.85 4.15 4.12 7.8 7 7.95 7.88 6.31 7.52 4.15 6.52 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95。
In the second line, enter the number of samples and variables (separated by spaces), for example: 10 7.
In the third line, enter the number of clusters, for example: 2.
###Output format:
Output the final judgment result. For example: aroma and acid belong to the same category or aroma and acid do not belong to the same category.
###Input example:
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
two
```
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
three
```
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
four
```
###Output example:
```out
Aroma and acidity belong to the same category.
```
```out
Aroma and acidity belong to the same category.
```
```out
Aroma and acidity do not belong to the same category.
```
answer:If there is no answer, please comment
![ QQ screenshot 20210101162419. PNG] (~ / e051436d-292e-4a1d-bd06-a34c0d1ee3c. PNG)
The system clustering method was used to cluster the variables of the data (divided into two categories), the maximum distance method was selected, the distance judgment index was selected, the correlation coefficient was selected to judge whether the aroma and acid belong to the same category, and the results were output.
###Input format:
In the first line, enter all variable values (separated by spaces in the middle), for example: 4.65 6.32 4.87 4.88 6.73 7.45 8.18.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5 6.01 6.21 4.95 4.43 6.72 7.6 8 8.43 6 8.72 7.12 6 8.01 8.12 6.52 7.42 4.5 6 6 6.85 4.15 4.12 7.8 7 7.95 7.88 6.31 7.52 4.15 6.52 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95。
In the second line, enter the number of samples and variables (separated by spaces), for example: 10 7.
In the third line, enter the number of clusters, for example: 2.
###Output format:
Output the final judgment result. For example: aroma and acid belong to the same category or aroma and acid do not belong to the same category.
###Input example:
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
two
```
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
three
```
```in
4.65 6.32 4.87 4.88 6.73 7.45 8.1 8.42 6.45 7.5 4.22 6.11 4.6 4.68 6.65 7.56 8.23 8.54 6.81 7.32 4.5 6.85 4.03 4.12 6.27 7.8 7.95 7.2 6.31 7.52 5.01 6.21 4.95 4.43 6.72 7.6 8.01 8.12 6.52 7.42 4.5 6.85 4.15 4.12 6.13 7.8 7.95 7.88 6.31 7.52 4.15 6.52 4.02 4.03 6.51 7.2 8.31 8.26 6.27 7.1 4.12 6.33 4.11 4.14 6.36 7.18 8.26 7.98 6.06 6.95
10 7
four
```
###Output example:
```out
Aroma and acidity belong to the same category.
```
```out
Aroma and acidity belong to the same category.
```
```out
Aroma and acidity do not belong to the same category.
```
answer:If there is no answer, please comment