#include <stdio.h> #include <stdlib.h> typedef struct Node { int key; struct Node* next; }Node; int main() { int n; int key; while(scanf("%d", &n) != EOF) { Node* head = (Node*)malloc(sizeof(Node)); head->next=NULL; //头节点 for(...