[天梯赛] L2-041 插松枝
摘要:
#include<bits/stdc++.h> using namespace std; int n,m,k; queue<int> q; stack<int> s; vector<int> ans[1010]; int anscnt=-1; void newstack(){ anscnt++; a
大纲
摘要:
五个部分 需求分析 用例图 1.参与者 2.用例 3.关系 活动图 设计 概要设计 1.接口设计 数据接口、用户接口 2.ER图 系统结构设计 1.架构图 2.功能模块图 * 参考链接 https://blog.csdn.net/weixin_30607659/article/details/968
[数据库] 游标
摘要:
游标(cursor) 主要就是对查询出来的数据结果做一些操作 1.会节省网络资源 2.增大了内存消耗 --游标(Cursor) ***** 多条数据的结果集 【集合】 --1、定义游标 cursor 游标名 is select语句 --2、打开游标 open 游标名 --3、提取数据 fetch 游
[leetcode]151. 反转字符串中的单词
摘要:
代码如下: class Solution { public: string reverseWords(string s) { vector<string> v; for(int i=0;i<s.size();i++){ if(s[i]!=' '){ string tmp=""; int j; for