#include<bits/stdc++.h>
using namespace std;
struct node //创建链表结点结构体
{
int data;
struct node*next;
}*head,*p,*r;
int main()
{
int n,a;
cin>>n;
head=NULL;
p=new node;
head=p;
for(int i=1;i<=n;i++)
{
cin>>a;
r=new node;
r->data=a;
p->next=r;
p=r;
}
p->next=NULL; //链表的输入
p=head->next; //链表的输出
while(p->next!=NULL)
{
cout<<p->data<<" ";
p=p->next;
}
cout<<p->data;
return 0;
}
10-03
5603

03-23
1074
