题目链接:https://vjudge.net/contest/342715 第一题:A - Max Sum Plus Plus 第二题:B - Ignatius and the Princess IV 题意:给n个数字,n为奇数,求一个数字x,x的个数大于等于(n+1)/2 解法一:map容器 思 ...
分类:
其他好文 时间:
2019-11-20 13:01:45
阅读次数:
97
尊重劳动成果,本插件的整理原文出自:https://blog.csdn.net/weixin_41846320/article/details/82697818,感谢老铁的辛苦原创。 插件安装方式: 新版本IDE安装方式略有不同,不一一赘述 1、Background Image Plus 这款插件并 ...
分类:
其他好文 时间:
2019-11-18 16:53:42
阅读次数:
88
Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant d ...
分类:
其他好文 时间:
2019-11-17 10:56:47
阅读次数:
52
官方链接:https://mp.baomidou.com/guide/generator.html#%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B 首先创建springboot的项目,创建步骤省略; 创建好项目后要配置maven依赖,附上pom.xml; <?xml ver ...
分类:
其他好文 时间:
2019-11-16 14:19:06
阅读次数:
70
1、 哪位能详细解释一下《C++ primer》中提到的“与机器无关的类型”? 如何做到自己的程序能在“不同的操作系统”以及“不同位的机器”中运行? 对于各不相同的平台提供的统一精度的数据类型。 机器无关性是一个很简单的概念。简而言之,这就是要求一种程序设计语言的有效实现不应依赖于某个特定指令集合的 ...
分类:
其他好文 时间:
2019-11-16 12:48:59
阅读次数:
56
(1)练习9.41 编写程序,从一个vector<char>初始化一个string (2)练习9.42假定你希望每次读取一个字符存入一个string中,而且知道最少需要读取100个字符,应该如何提升性能? 1 #pragma 2 #include "pch.h" 3 #include <iostre ...
分类:
编程语言 时间:
2019-11-16 00:31:47
阅读次数:
91
1、 #include <stdio.h> #include <stdlib.h> int main() { int ch; int count = 0; FILE * fp; char fname[50]; printf("请输入文件名:\n"); scanf("%s", fname); getc ...
分类:
其他好文 时间:
2019-11-12 21:58:18
阅读次数:
109
#include <string>using std::string;int main(){ //3.2.1 定义和初始化string对象 string s1; //默认初始化,s1是一个空字符串 string s2 = s1; //s2是s1的副本 string s3 = "hiya"; //s3 ...
分类:
编程语言 时间:
2019-11-12 19:55:18
阅读次数:
80
MyBatis优势: Sql简单语句可以自由控制,更灵活,性能更高.. sql与代码分离,易于阅读和维护 提供xml标签,支持编写动态sql语句. 劣势: 简单crud操作还是写SQL 语句 xml中有大量的sql要维护 mybatis自身功能很有限,但是支持Plugin JPA的优势: jpa 一 ...
分类:
其他好文 时间:
2019-11-12 00:28:04
阅读次数:
97
Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or ...
分类:
其他好文 时间:
2019-11-10 09:34:42
阅读次数:
95