码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
得到栈中的最小值
#include <iostream> #include <stack> using namespace std; class GetMinStack{ public: void push(int x); void pop(); int top(); int getmin(); private: s ...
分类:其他好文   时间:2021-01-13 11:27:28    阅读次数:0
结构体字符串排序
#include<iostream> #include<cstring> #include<algorithm> using namespace std; struct node { string x; //装票数 int num; //装号数 int lenx; //装票数的位数 }s[25]; ...
分类:编程语言   时间:2021-01-13 11:00:17    阅读次数:0
atcoder abc 188 题解
A - Three-Point Shot 题目大意 两个球队现在分数分别给出,问少的一方投入三分球之后是否能翻盘. 代码 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) f ...
分类:其他好文   时间:2021-01-13 10:46:21    阅读次数:0
CF1036C Solution
题目链接 题解 很普通的数位dp题呐,$state$表示$>0$的数位个数。 AC代码 #include<bits/stdc++.h> #define int long long using namespace std; int dp[20][5],a[20],cnt; int dfs(int po ...
分类:其他好文   时间:2021-01-12 11:02:11    阅读次数:0
Linux-C-GetUserName
Linux-C-GetUserName code //getUserName.c #include <iostream> #include <string> using namespace std; #ifdef linux #include <unistd.h> #include <pwd.h> ...
分类:系统相关   时间:2021-01-11 11:16:12    阅读次数:0
单链表反转
#include <iostream> #include <vector> #include <string> using namespace std; struct Node { int data; Node * next; }; Node * reverseList(Node * head) { ...
分类:其他好文   时间:2021-01-11 11:11:15    阅读次数:0
AcWing 828. 模拟栈
实现一个栈,栈初始为空,支持四种操作: (1) “push x” – 向栈顶插入一个数x; (2) “pop” – 从栈顶弹出一个数; (3) “empty” – 判断栈是否为空; (4) “query” – 查询栈顶元素。 现在要对栈进行M个操作,其中的每个操作3和操作4都要 #include<b ...
分类:Windows程序   时间:2021-01-11 11:07:55    阅读次数:0
JS 获取昨天、今天、上一周、本周
关注公众号: 微信搜索 web全栈进阶 ; 收货更多的干货 开发日常,没什么技巧,主要是换算,直接看代码;复制粘贴即可用 对应的是element-ui DatePicker 带快捷选项 时间控件,所以返回的是数组; export const getTime = function () { // 起止 ...
分类:Web程序   时间:2021-01-11 10:55:48    阅读次数:0
UVa153
这题要求 找到涂色骰子是否为相同的骰子 使用函数式编程的思想,对于第二个骰子 ,每一个面,判断将其左右旋转后能否满足第一个骰子,旋转的任务交给函数rotate去做, 而换面的操作交给f1和f2去做 #include<iostream> #include<string> using std::cin; ...
分类:其他好文   时间:2021-01-11 10:42:34    阅读次数:0
C++ 常用转换API记录
//wstring转string std::string wstring2string(IN std::wstring& wstr) { std::string result; //获取缓冲区大小,并申请空间,缓冲区大小事按字节计算的 int len = WideCharToMultiByte(CP ...
分类:编程语言   时间:2021-01-11 10:29:26    阅读次数:0
41627条   上一页 1 ... 42 43 44 45 46 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!