03 2021 档案

摘要:反转链表 #include <iostream> #include<bits/stdc++.h> using namespace std; //单链表的结构 struct ListNode { int val; ListNode *next; // 初始化方法 ListNode() : val(0) 阅读全文
posted @ 2021-03-25 19:19 LightAc 阅读(49) 评论(0) 推荐(0) 编辑
摘要:A. #include <bits/stdc++.h> using namespace std; typedef long long ll; int main () { ll k; cin >> k; ll x, y, p, q; cin >> x >> y >> p >> q; if(x == p 阅读全文
posted @ 2021-03-15 11:27 LightAc 阅读(58) 评论(0) 推荐(0) 编辑
摘要:A.一道模拟题 #include <bits/stdc++.h> using namespace std; typedef long long ll; int main () { int T; cin >> T; while(T--) { int n; cin >> n; std::vector<l 阅读全文
posted @ 2021-03-14 11:19 LightAc 阅读(95) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main () { int t; cin >> t; while(t--) { int n, k; cin >> n >> k; string s; cin >> s; if(k == 0) { cou 阅读全文
posted @ 2021-03-10 23:11 LightAc 阅读(103) 评论(0) 推荐(0) 编辑

返回顶端
点击右上角即可分享
微信分享提示