缝纫机渴了
缝纫机渴了
全部文章
分类
归档
标签
去牛客网
登录
/
注册
缝纫机渴了的博客
全部文章
(共7篇)
题解 | 有效括号序列
//比较麻烦的写法但是能过 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bo...
2025-12-24
0
5
题解 | 括号配对问题
//大神帮忙优化 #include <bits/stdc++.h> using namespace std; int main() { stack<int> st; string str; cin >> str; int flag ...
2025-12-24
0
6
题解 | 好串
//能过但肯定不是最优解 #include <iostream> using namespace std; #include <stack> int main() { string s; stack<char> a; stack<ch...
2025-12-24
0
7
题解 | 最高分与最低分之差
//杀鸡用牛刀哈哈 #include <iostream> using namespace std; #include <algorithm> #include <vector> int main() { int n; cin>>n; ve...
2025-12-23
0
7
题解 | 小红的正整数构造
#include <stdio.h> int main() { int l,r,x; scanf("%d %d %d",&l,&r,&x); int flag=1; for(int i=l;i<=r;i++) ...
2025-12-22
0
7
题解 | 田忌赛马
#include <stdio.h> void swap(int*a,int*b) { int t=*a; *a=*b; *b=t; } void exchange(int*a,int*b,int*c) { if(*a>*b) swap(a,b); ...
2025-12-22
0
6
题解 | 旺仔哥哥挤地铁
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算旺仔哥哥在地铁上的最长停留时间 * @param t int整型一维数组 序列 t,表示地铁在相邻两站之间的用时 * @param tLen int t数组长度 * @param s in...
2025-12-22
0
8