1. 链表 用cin会超时,改成scanf过了 #include <bits/stdc++.h> using namespace std; int main() { int n, k; scanf("%d%d", &n, &k); int val; for (...