1.布尔类型 var v1 bool v1 = true; v2 := (1==2) // v2也会被推导为bool类型 2.整型 类 型 长度(字节) 值 范 围 int8 1 ? 128 ~ 127 uint8(即byte)1 0 ~ 255 int16 2 ? 32 768 ~ 32 767 ...
分类:
编程语言 时间:
2017-08-14 19:05:54
阅读次数:
246
看到区间求重叠的部分 , 就想到对区间排序(start, end?), 然后用堆模拟遍历218 The Skyline Problem Like the previous one Meeting Room, still need to sort the intervals using a compa ...
分类:
其他好文 时间:
2017-08-13 20:13:03
阅读次数:
163
作者介绍:吴双桥 腾讯云project师 阅读原文。很多其它技术干货。请訪问腾云阁。 本文主要介绍在MySQL 5.7.7開始引入的非结构化数据类型JSON的特性以及详细的实现方式(包含存储方式)。首先介绍为什么要引入JSON的原生数据类型的支持;接着介绍MySQL给用户提供的JSON操作函数,以及 ...
分类:
数据库 时间:
2017-08-13 19:24:25
阅读次数:
263
ZOJ - 3640 Help Me Escape 题目大意: Cain被困在一个洞穴里,洞穴有n个出口,每个出口有一个难度值C[i],Cain有一个初始的战斗值f。现在Cain随机选择一个出口,如果f大于出后的难度,那么Cain将会花floor( (1+sqrt(5))/2*C[i]*C[i] ) ...
分类:
其他好文 时间:
2017-08-12 20:24:19
阅读次数:
137
Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Each square is initially either clean or dirty. Ohana ca ...
分类:
其他好文 时间:
2017-08-11 23:12:22
阅读次数:
251
题目描述 ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(. As a s ...
分类:
其他好文 时间:
2017-08-11 22:58:19
阅读次数:
142
题目链接 参考自:http://www.cnblogs.com/oyking/p/4508260.html 题意 n个人,其中有k对双胞胎.现有m间房间,每间房间有容量ci问分配房间的方案数。 分析 设dp[i][j]为已经放满了第i个房间之后,所剩下的双胞胎的对数还有j对,然后对于i+1间房,我们 ...
分类:
其他好文 时间:
2017-08-11 20:27:00
阅读次数:
126
转自:http://www.haorooms.com/post/input_file_leixing 一、input:file属性 属性值有以下几个比较常用: accept:表示可以选择的文件MIME类型,多个MIME类型用英文逗号分开,常用的MIME类型见下表。 multiple:是否可以选择多个 ...
分类:
Web程序 时间:
2017-08-11 18:58:16
阅读次数:
184
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5389 Problem Description Zero Escape, is a visual novel adventure video game directed by Kotaro Uchikos ...
分类:
其他好文 时间:
2017-08-09 20:09:38
阅读次数:
259
一、前言 讲这3个方法区别的文章太多了,但是大部分写的都很绕。本文试图从实践角度去讲这3个方法。 二、escape和它们不是同一类 简单来说,escape是对字符串(string)进行编码(而另外两种是对URL),作用是让它们在所有电脑上可读。编码之后的效果是%XX或者%uXXXX这种形式。其中 A ...
分类:
Web程序 时间:
2017-08-09 19:11:02
阅读次数:
237