摘要:
include include<unordered_set> include using namespace std; int main(){ int N; cin>>N; if(N<1||N>100000){ cout<<"error"<<endl; return 0; } vectorA(N); 阅读全文
posted @ 2025-11-24 17:13
Cx330。
阅读(2)
评论(0)
推荐(0)
摘要:
include include include using namespace std; int main() { vector A, B, C; int num; // 读取表A while (cin >> num && num != -1) { A.push_back(num); } // 读取 阅读全文
posted @ 2025-11-24 09:31
Cx330。
阅读(2)
评论(0)
推荐(0)
摘要:
include using namespace std; // 双向循环链表节点结构 struct Node { int data; Node* prior; Node* next; // 构造函数简化节点创建 Node(int val) : data(val), prior(nullptr), n 阅读全文
posted @ 2025-11-24 09:29
Cx330。
阅读(4)
评论(0)
推荐(0)
摘要:
include using namespace std; struct Node{ int data; Node *prior; Node *next; Node(int val):data(val),prior(nullptr),next(nullptr){} }; Node *createLis 阅读全文
posted @ 2025-11-24 09:28
Cx330。
阅读(3)
评论(0)
推荐(0)
摘要:
include include include using namespace std; int main(){ vectorA,B,C; int num; while(cin>>num&&num!=-1){ A.push_back(num); } while(cin>>num&&num!=-1){ 阅读全文
posted @ 2025-11-24 09:28
Cx330。
阅读(3)
评论(0)
推荐(0)
摘要:
struct ListNode *reverse(struct ListNode *head){ struct ListNode *prev=NULL; struct ListNode *curr=head; struct ListNode *next=NULL; while(curr!=NULL) 阅读全文
posted @ 2025-11-24 09:28
Cx330。
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号