码迷,mamicode.com
首页 >  
搜索关键字:begin    ( 8626个结果
PAT 甲级 1012 The Best Rank 模拟
地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805502658068480 主要是模拟 题意比较绕。 题目大意是 接受各个学生的三门成绩 C M E, 然后四舍五入计算出平均成绩A 在 接受询问的学生的id后 打印 ...
分类:其他好文   时间:2021-02-16 11:53:57    阅读次数:0
1069 The Black Hole of Numbers (20 分)
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:其他好文   时间:2021-02-15 12:21:49    阅读次数:0
Delphi - 生成GUID
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
分类:Windows程序   时间:2021-02-15 12:21:06    阅读次数:0
is_sorted
leetcode打卡 题面 class Solution { public: bool checkPossibility(vector<int> &nums) { int n = nums.size(); for (int i = 0; i < n - 1; ++i) { int x = nums[ ...
分类:其他好文   时间:2021-02-08 12:11:43    阅读次数:0
计算几何模板
计算几何模板 正如不知何方大佬所言,计算几何精妙之处,就是不用解析几何的方法去做 为了方便查找,防止自己迷路,我把函数名都写成了拼音 绝对不是因为我英语不好!!! 基本数据结构 点和向量: 点和向量都可以用一个坐标$(x,y)$来表示. 故向量$Vector$可以写为 typedef struct ...
分类:其他好文   时间:2021-02-06 12:02:22    阅读次数:0
有约束优化问题
对于一般形式约束优化问题: \[ \begin{array}{cl} \min & f(x) \\ \mathrm{s.t.} & g_i(x) \leq0, \quad i=1,\cdots ,m \\ & h_i(x) = 0, \quad i=1,\cdots ,l \end{array} \ ...
分类:其他好文   时间:2021-01-29 12:20:15    阅读次数:0
剑指 Offer 48. 最长不含重复字符的子字符串
原题链接 begin为最长不含重复字符的子字符串的起点 1 class Solution: 2 def lengthOfLongestSubstring(self, s: str) -> int: 3 begin,ans,dic = 0,0,{} 4 for index,c in enumerate ...
分类:其他好文   时间:2021-01-26 11:51:45    阅读次数:0
P5838 [USACO19DEC]Milk Visits G
题解 并不需要什么高级数据结构 用树链剖分维护 对于每种颜色开个 \(\text{vector}\),然后把是这种颜色的点的 \(\text{dfs}\) 序加进来排序 对于 \([dfn[top[x]],dfn[x]]\) 这一区间问有没有某种颜色 相当于问某种颜色有没有至少一个在这个区间内 直接 ...
分类:其他好文   时间:2021-01-25 11:14:34    阅读次数:0
ORA-00904: "WM_CONCAT": invalid identifier 解决方案
背景:由于技术架构的调整,数据库需要进行迁移,将表和存储过程从Oracle数据库迁移到另外一个Oracle数据库,在存储过程迁移过程中,遇到个问题,使用WM_CONCAT的存储过程编译不会通过,并且报 ORA-00904: "WM_CONCAT": invalid identifier 错误。 产生 ...
分类:其他好文   时间:2021-01-25 10:38:49    阅读次数:0
SQL Server在每个数据库上运行同一个脚本
方法一: Set NoCount On if exists(select * from tempdb..sysobjects where id=object_id('tempdb..##tempEANReport'))Begin drop table ##tempEANReportEndCreate ...
分类:数据库   时间:2021-01-19 12:01:00    阅读次数:0
8626条   上一页 1 ... 10 11 12 13 14 ... 863 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!