|
Download 11063.md from EasyChCh/CPE_AI_Programming_Assistant_49_md: direct link, hf CLI and curl.
- Browser
- Download file 942 Bytes
-
https://huggingface.co/datasets/EasyChCh/CPE_AI_Programming_Assistant_49_md/resolve/main/11063.md
- Command line
-
hf download hf://datasets/EasyChCh/CPE_AI_Programming_Assistant_49_md/11063.md
-
curl -L -o 11063.md https://huggingface.co/datasets/EasyChCh/CPE_AI_Programming_Assistant_49_md/resolve/main/11063.md
942 Bytes
| ## Page 1 | |
| 11063 | |
| B2-Sequence | |
| A B2-Sequence is a sequence of positive integers 1 ≤b1 < b2 < b3 . . . such that all pairwise sums bi +bj, | |
| where i ≤j, are different. | |
| Your task is to determine if a given sequence is a B2-Sequence or not. | |
| Input | |
| Each test case starts with 2 ≤N ≤100, the number of elements in a sequence. Next line will have N | |
| integers, representing the value of each element in the sequence. Each element bi is an integer such that | |
| bi ≤10000. There is a blank line after each test case. The input is terminated by end of file (EOF). | |
| Output | |
| For each test case you must print the number of the test case, starting from 1, and a message indicating | |
| if the corresponding sequence it is a B2-Sequence or not. See the sample output below. After each test | |
| case you must print a blank line. | |
| Sample Input | |
| 4 | |
| 1 2 4 8 | |
| 4 | |
| 3 7 10 14 | |
| Sample Output | |
| Case #1: It is a B2-Sequence. | |
| Case #2: It is not a B2-Sequence. |