1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课外】16.结构体2/7-3 新键表输出.md

18 lines
423 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 7-3 新键表输出
有一个单向链表头指针为L结点的数据域是一个整数将链表L中奇数值的结点重新组成一个新的链表NEW并输出新建链表。
输入格式:输入若干个整数,以-1结束输入
输出格式:数值之间以一个空格分隔,最后一个数值后面没有空格
### 输入样例:
```in
1 2 3 4 5 6 7 -1
```
### 输出样例:
```out
1 3 5 7
```