考个研真的把很多东西都忘光了,,, #include <string_view> #include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; class Sampl ...
分类:
其他好文 时间:
2021-04-23 12:18:50
阅读次数:
0
## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
typeid操作符可以用来获取一个类型/表达式的名称: #include <iostream> #include <typeinfo> using namespace std; int main() { std::cout << typeid(int).name() << std::endl; re ...
分类:
其他好文 时间:
2021-04-23 12:05:50
阅读次数:
0
#!/usr/bin/env python #-*- coding:utf-8 -*- num=0 while num<=10: print(num,end="\t") num +=1 print("**************************") num2=0 sum_all=0 whil ...
分类:
其他好文 时间:
2021-04-22 16:16:24
阅读次数:
0
一、解决SpringBoot MongoDB插入文档默认生成_class字段问题 @Configuration public class SpringMongoConfig{ @Bean public MongoTemplate mongoTemplate() throws Exception { ...
分类:
数据库 时间:
2021-04-22 16:06:57
阅读次数:
0
i: /* * @lc app=leetcode.cn id=127 lang=cpp * * [127] 单词接龙 * * https://leetcode-cn.com/problems/word-ladder/description/ * * algorithms * Hard (45.95% ...
分类:
其他好文 时间:
2021-04-22 15:58:08
阅读次数:
0
常用的数据类型 整数类型 int 98 浮点数 float 3.14 布尔类型 bool True,False 字符串类型 str ‘我用pycharm写代码’ ...
分类:
其他好文 时间:
2021-04-22 15:46:17
阅读次数:
0
<view class="details"><text>给文字添加下划线</text></view> >.details { color: #409EFF; font-size: 26upx; line-height: 36upx; padding-bottom: 92upx; >text { pa ...
分类:
其他好文 时间:
2021-04-22 15:43:57
阅读次数:
0
二进制水题~。 int n,m; int main() { cin>>n>>m; while(m--) { string s; cin>>s; int res=0; for(int i=0;i<s.size();i++) if(s[i] == 'n') res+=1<<(n-1-i); cout<< ...
分类:
其他好文 时间:
2021-04-22 15:39:34
阅读次数:
0
1.记录索引交换 class Solution { public: int minSwapsCouples(vector<int>& row) { int len=row.size(); vector<int> idx(len,-1); int ret=0; for(int i=0;i<len;++ ...
分类:
其他好文 时间:
2021-04-22 15:12:46
阅读次数:
0