PeapEapeA
PeapEapeA
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
PeapEapeA的博客
全部文章
(共6篇)
题解 | #坐标移动#
这道题的难点感觉就是怎么处理字符串。本题使用正则表达式是比较方便的,但是需要注意以下这种情况:A;当使用正则"\\d*"对其后面的数字进行匹配时,要判断'A'之后的字符串是否为空,如果是空的,则不必往下进行。如果使用正则"\\d+"对其后面的数字进行匹配时,则...
2023-10-10
0
288
题解 | #句子逆序#
#include <cstdio> #include <functional> #include <iostream> #include <queue> #include <string> #include <unordered_ma...
2023-10-10
0
291
题解 | #合并表记录#
#include <functional> #include <iostream> #include <queue> #include <unordered_map> #include <vector> using namespace st...
2023-10-10
0
295
题解 | #取近似值#
#include <cmath> #include <iostream> using namespace std; int main() { double a; while (cin >> a ) { // 注意 while 处理多个 case ...
2023-10-10
0
259
题解 | C++#计算某字符出现次数#
#include <bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin, s)) { char c; cin >> c; ...
2023-10-10
0
314
天坑
c。这个题的测试用例和示例太坑了吧,测试用例没有前缀0,示例却有。。。 #include<stdio.h> typedef struct _stu{ int no; char name[20]; char sex[10]; int age; }stu; ...
2021-02-28
10
1072