首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
字符串展开
19条解析
开通博客写题解
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;
展开全文
周康禧
发表于 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<
展开全文
Hauauah
发表于 2026-04-21 23:01:41
给大家欣赏下石山代码 #include <algorithm> #include <cctype> #include <iostream> using namespace std; int main() { int a, b, c;cin>>
展开全文
自由的风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
展开全文
星璇Xx
发表于 2025-11-18 21:12:24
#include<bits/stdc++.h> using namespace std; bool sametype(char a,char b){ return (isdigit(a) && isdigit(b) || islower(a) && i
展开全文
丘馗
发表于 2026-01-08 11:09:43
#include <iostream> #include <string> #include <algorithm> using namespace std; string operator*(const string &s,int n) { s
展开全文
查看本题
查看本题讨论
相关比赛
20960-2021秋季算法入门班第一章习题:模拟、枚举、贪心
进入比赛
127358-模拟枚举和贪心
进入比赛
129815-长春财经学院开放原子开源社团程序设计竞赛
进入比赛
130256-开放原子开源社团程序设计竞赛
进入比赛
等你来战
查看全部
牛客2026年儿童节比赛
报名截止时间:2026-06-01 21:00
牛客练习赛154
报名截止时间:2026-06-05 21:30
牛客周赛 Round 147
报名截止时间:2026-06-07 21:00
汤圆头 Round 1
报名截止时间:2026-07-06 22:00
2026牛客暑期多校训练营1
报名截止时间:2026-07-17 17:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题