题面 题意:给你2个点A和B,和n条直线(ax+by+c=0),给n个a,b,c,求A到B至少跨过多少条直线 题解:对于每条直线,看2个点是否在他同侧,异侧答案就+1 ...
分类:
其他好文 时间:
2018-09-20 01:00:49
阅读次数:
221
Overview JNI (Java Native Interface) is the mechanism that enables Java code to call native functions, and native code to call Java functions. Native ...
分类:
移动开发 时间:
2018-09-18 22:41:47
阅读次数:
326
刚创建的Python中级群,有一定Python基础的可以共同探讨学习~ 微信公众号:dotnetcrazy ...
分类:
其他好文 时间:
2018-09-17 13:36:01
阅读次数:
150
尽管Scala还有一些基于语言特性的设计模式,单本文还是着重于介绍大家所周知的经典设计模式,因为这些设计模式被认为是开发者之间交流的工具。 创建型设计模式 创建型设计模式 1、工厂方法模式 2、延迟加载模式 3、单例模式 结构型模式 结构型模式 1、适配器模式 2、装饰模式 行为型 行为型 1、值对 ...
分类:
其他好文 时间:
2018-09-09 16:50:29
阅读次数:
240
Here`s to the crazy ones.The misfits.The rebels.The troublemakers.The round pegs in the square holes.The ones who see things differently.They are not ...
分类:
其他好文 时间:
2018-08-17 12:50:49
阅读次数:
163
Given a string, replace each its character by the next one in the English alphabet (z would be replaced by a). Example For inputString = "crazy", the ...
分类:
其他好文 时间:
2018-08-13 20:46:31
阅读次数:
171
参考:https://www.cnblogs.com/My-Sunshine/p/4934362.html https://blog.csdn.net/tomcmd/article/details/48101857 ...
分类:
其他好文 时间:
2018-08-12 14:18:11
阅读次数:
126
Crazy Search Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 32337 Accepted: 8906 Description Many people like to solve hard puzzles some o ...
分类:
其他好文 时间:
2018-08-11 19:38:12
阅读次数:
139
题目大意就是将一个字符串分成长度为N的字串。且不同的字符不会超过NC个。问总共有多少个不同的子串。 采用的办法就是以nc作为进制,把一个子串化为这个进制下的数,再用哈希判断。由于题目说长度不会超过16,000,000 所以哈希长度就设为16000000就行。另外为每一个字符对应一个整数,来方便转化。 ...
分类:
其他好文 时间:
2018-08-08 18:14:44
阅读次数:
143
监听器模式 http://blog.csdn.net/crazysusu/article/details/50731991 https://my.oschina.net/u/923324/blog/792857 http://blog.csdn.net/dongnan591172113/articl ...
分类:
其他好文 时间:
2018-06-30 12:53:02
阅读次数:
142