AcWing 826. 单链表
# 单链表
#include <iostream>
using namespace std;
const int N = 1e6 + 10;
int head, e[N], ne[N], idx;
void init(){
head = -1;
idx = 0;
}
void add_to_head(int x){
e[idx] = x, ne[idx] = head, head = idx, idx++;
}
void add(int k, int x){
more...






