#include using namespace std; struct node { int abc; node* next; }; node* head; node* last; node buf[100]; int bufcnt; node* myalloc() { return &buf[bufcnt++]; } void addnode(int c) { if (head == NULL) { head = myalloc(); head->abc = c; last = head; } else { last->next = myalloc(); last = last->next; last->abc = c; } } int main() { int num; cin >> num; //6 for (int i = 0; i < num;i++) { int x; c..