zhizhuxialiwen
zhizhuxialiwen
全部文章
分类
题解(52)
归档
标签
去牛客网
登录
/
注册
zhizhuxialiwen的博客
全部文章
(共52篇)
题解 | #购物单#
#include <iostream> #include <vector> #include <algorithm> using namespace std; /* 动态规划: 思路:总钱数N是10的倍数,除以10减少范围,且价格v除以10;根据附件标签q将主件...
C++
2021-12-12
2
364
题解 | #挑7#
#include <iostream> using namespace std; bool IsSeven(int num) { while(num) { if (num % 10 == 7) { return true; ...
C++
2021-11-30
0
263
题解 | #表达式求值#
#include <iostream> #include <string> #include <stack> #include <vector> using namespace std; #ifdef FIRST_MRTHOD int i; /*...
C++
2021-11-29
0
287
题解 | #杨辉三角的变形#
#include <iostream> #include <vector> using namespace std; /* 思路: 1 1 1 1 1 2 3 2 1 1...
C++
2021-11-28
0
278
题解 | #计算字符串的距离#
#include <iostream> #include <string> using namespace std; /* 动态规划 思路:arr[i][j]表示A的i的字母和B的j字母之间的间距。A字符串用arr[i][0]表示,间距arr[i-1][j] + 1; B...
C++
2021-11-27
0
414
题解 | #输出单向链表中倒数第k个结点#
#include <bits/stdc++.h> using namespace std; struct ListNode { int data; struct ListNode* next; ListNode(int x) : data(x), ...
C++
2021-11-26
0
294
题解 | #四则运算#
#ifndef INCLUD #include <bits/stdc++.h> #else #include <iostream> #inclucde <map> #inclucde <string> #inclucde <stack> #...
C++
2021-11-24
0
343
题解 | #从单向链表中删除指定值的节点#
#include <iostream> #include <forward_list> #include <algorithm> #include <vector> using namespace std; #ifdef FIRST_METHOD /...
C++
2021-11-23
6
429
题解 | #截取字符串#
#include <iostream> #include <string> using namespace std; int main() { string strIn; int n; while(cin>>strIn>>n...
C++
2021-11-23
3
358
题解 | #名字的漂亮度#
#include <iostream> #include <map> #include <vector> #include <string> #include <algorithm> using namespace std; /* 思路:...
C++
2021-11-22
0
278
首页
上一页
1
2
3
4
5
6
下一页
末页