03 2021 档案
摘要:反转链表 #include <iostream> #include<bits/stdc++.h> using namespace std; //单链表的结构 struct ListNode { int val; ListNode *next; // 初始化方法 ListNode() : val(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
阅读全文
摘要: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
阅读全文
摘要:#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
阅读全文