摘要: 注意map的按键和按值排序,按值排序需要转为vector #include<iostream> #include<map> #include<vector> #include<algorithm> using namespace std; int cmp(const pair<int,int>c1, 阅读全文
posted @ 2023-03-20 20:07 智人心 阅读(13) 评论(0) 推荐(0) 编辑
摘要: memset在填充的时候保证每个字节值相同 https://www.bbsmax.com/A/QV5Z8QEZzy/ 阅读全文
posted @ 2023-03-20 19:21 智人心 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 注意整行输入的格式 #include<iostream> #include<sstream> using namespace std; string reorderSpaces(string text) { string words[55]; int n = text.size(),cntWords 阅读全文
posted @ 2023-03-20 19:04 智人心 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 记得用sum,否则多条数据会冲突 # Write your MySQL query statement below select id, sum(case when month='Jan' then revenue else null end) Jan_Revenue, sum(case when 阅读全文
posted @ 2023-03-20 17:17 智人心 阅读(18) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示