ACFING
ACFING
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ACFING的博客
全部文章
(共11篇)
题解 | #单词识别#单词识别,map+稳定排序
#include <algorithm> #include <iostream> #include <string> #include <map> #include <vector> using namespace std; // 比较...
2024-07-27
1
121
题解 | #【模板】二维前缀和#
#include <iostream> #include<vector> using namespace std; int main() { int n, m, q; int x1, y1, x2, y2; cin >> n >&g...
2024-06-07
0
153
题解 | #【模板】前缀和#
#include <iostream> #include<vector> using namespace std; int main() { int n, q; cin >> n >> q; //原数组 vector&...
2024-06-06
0
155
题解 | #字符串最后一个单词的长度#
#include <iostream> #include <string> using namespace std; int main() { string str; //不能使用cin>>str,因为cin遇到空格就结束了 while(...
2024-05-17
0
167
题解 | #字符串最后一个单词的长度#
#include <iostream> #include <string> using namespace std; int main() { string str; //先读入字符串 getline(cin, str); //然后使用rfind函数...
2024-05-08
0
156
题解 | #打印日期#打印日期简单思路解法
#include <iostream> using namespace std; //判断闰年的函数 bool IsLeapYear(int year) { return ((year % 4 == 0 && year % 100 != 0) || year % ...
2024-04-19
1
214
题解 | #日期累加#日期累加思路简单解法
#include <iostream> using namespace std; bool IsLeapYear(int year) { return ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)...
2024-04-19
2
264
题解 | #链表的回文结构#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class PalindromeList { public: struct L...
2024-02-01
0
142
题解 | #环形链表的约瑟夫问题#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @param m int整型 * @return int整型 */ typedef struct ListNode ListNode; //创建新节...
2024-01-25
1
161
题解 | #判断整数奇偶性#
#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { if(a%2!=0) { printf(&...
2023-12-06
0
342
首页
上一页
1
2
下一页
末页