摘要: Codeforces Round 874 (Div. 3) A - Musical Puzzle 思路:记录两个长度字符串的种数 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<s 阅读全文
posted @ 2023-05-26 09:54 bible_w 阅读(61) 评论(0) 推荐(0) 编辑
摘要: Educational Codeforces Round 149 (Rated for Div. 2) A - Grasshopper on a Line 思路:只有两种情况,x整除k时为x-1和1,否则为x void solve() { int x, k; cin >> x >> k; if (x 阅读全文
posted @ 2023-05-26 08:49 bible_w 阅读(137) 评论(0) 推荐(0) 编辑