题目如下: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of s ...
分类:
其他好文 时间:
2020-05-29 09:26:12
阅读次数:
59
http://acm.hdu.edu.cn/showproblem.php?pid=2689 #include<bits/stdc++.h> #define low(x) (x&(-x)) using namespace std; const int maxn=1e5+5; typedef long ...
分类:
编程语言 时间:
2020-05-28 13:40:31
阅读次数:
88
移动端常用适配,解决了1px像素看起来变粗的 问题 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>移动端常用适配</title> <script> /* 1.如何解决设备像素和CSS像素不一样的问题? 如果 ...
分类:
移动开发 时间:
2020-05-28 00:38:32
阅读次数:
82
meta篇 1.视窗宽度 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> 其中 width=devi ...
分类:
移动开发 时间:
2020-05-26 20:03:34
阅读次数:
79
题目大意: 给出一个序列,然后求这个序列的最大上升子序列的和。 题解:定义状态dp[i]表示前i个数的最大和,dp[i]的最小值应该是arr[i]了,因为i前边可能有负数,对于负数,虽然可以构成上升子序列,但是没有必要选。 code: #include<bits/stdc++.h> using na ...
分类:
其他好文 时间:
2020-05-25 19:25:25
阅读次数:
75
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3383 Accepted Submission(s): 1169 Problem Descri... ...
分类:
其他好文 时间:
2020-05-25 15:47:49
阅读次数:
51
题目大意 给出一个有向图(可能存在重边),求从$S$到$F$最短路的条数,如果次短路的长度仅比最短路的长度多1,那么再加上次短路的条数。 输入格式 第一行是数据组数$T$。 对于魅族数据,第一行是$n$和$m$,表示节点数和边数。 接下来$m$行,每行三个整数$a$,$b$,$l$,表示$a\rig ...
分类:
其他好文 时间:
2020-05-25 12:23:49
阅读次数:
48
SpringBoot整合MyBatis1、创建项目时勾选mybatis、数据库驱动。mysql驱动默认是8.x的版本,如果要使用5.x的版本,创建后到pom.xml中改。也可以手动添加依赖<dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-b
分类:
编程语言 时间:
2020-05-25 09:35:58
阅读次数:
53
对于一个连通图而言,有这样的一个性质:其需要画的笔数=度数为奇数的点数除以2 有了这个结论,用并查集求联通块就行 #include<stdio.h> #include<string.h> #include<iostream> #include<algorithm> using namespace s ...
分类:
其他好文 时间:
2020-05-25 09:30:02
阅读次数:
65
题意:给你一个n,求最下的x使得存在一个y从而y2=n+x2成立。 你们这些人就会出些叫做“simple”,“简单”的题来欺负蒟蒻QAQ 思路分析:考虑初中二年级学过的公式:x2-y2=(x-y)*(x+y);那么我们的原式就变成了(y-x)*(y+x)=n;既然如此,我们只需枚举每一对n的因子a, ...
分类:
其他好文 时间:
2020-05-25 00:14:44
阅读次数:
48