首页 > 字符串展开
头像 Ldh1315109
发表于 2025-11-07 17:31:47
def solve(testcase): a, b, c = MI() s = I() n = len(s) res = [] for i, ch in enumerate(s): if ch != '-': re 展开全文
头像 昀启融
发表于 2026-02-02 12:29:27
#include <iostream> using namespace std; int main() { int a, b,c,d; cin>>a>>b>>c; string s; char ch; cin 展开全文
头像 opeh
发表于 2026-03-08 17:57:38
#include<bits/stdc++.h> using namespace std; #define int long long signed main() { int p1,p2,p3; cin>>p1>>p2>>p3; 展开全文
头像 Bdewiu
发表于 2025-12-12 15:44:31
#include <bits/stdc++.h> using namespace std; using ll = long long int; using ld = long double; using PII=pair<ll,ll>; using PIII=pair< 展开全文
头像 自由的风0450
发表于 2025-11-22 13:58:21
#include <iostream> #include<string> #include<algorithm> #include<cctype> using namespace std; int main() { int p1, p2, p 展开全文
头像 游云吞鲸
发表于 2026-01-18 10:38:35
#include <bits/stdc++.h> using namespace std; void tian(int ,int ,int ,char ,char ); bool expand(char ,char ); int main() { int p1,p2,p3; 展开全文
头像 MaoPaoMiao
发表于 2026-01-14 19:53:36
#include <bits/stdc++.h> using namespace std; int main() { int p1, p2, p3; cin >> p1 >> p2 >> p3; string s; ci 展开全文
头像 丘馗
发表于 2026-01-08 11:09:43
#include <iostream> #include <string> #include <algorithm> using namespace std; string operator*(const string &s,int n) { s 展开全文
头像 人工2301B刘永琪
发表于 2025-04-23 16:45:56
刚开始参加竞赛没有做过有那么多特殊情况的题,而且好多需要自己考虑到的条件 做了好几个小时开始的时候一直卡在50%,后来看了各位大佬的题解慢慢改到AC,头绪还是有点乱,写一下理个思路。 前面写的挺顺但是没考虑到在直接使用a[i-1]++这些的时候会导致m的循环条件改变导致错误,引入t解决。然后就是开头 展开全文
头像 该昵称已被占用_Error0_
发表于 2026-03-05 20:56:30
需要处理的条件颇多,需细心 #include<iostream> #include<cctype> #include<algorithm> using namespace std; int p1,p2,p3; string s,ans; int main(){ 展开全文