码迷,mamicode.com
首页 >  
搜索关键字:coffee lake power-on me    ( 7774个结果
笔试算法题(23):数值整数次方 & 最大对称子串
出题:数值的整数次方(不考虑溢出),实现函数double Power(double base, int exponent);分析:解法1:最简单的方法是使用直接的乘法运算,但是注意处理几种特殊情况:exponent为负数,base为0;解法2:将exponent分解成2的不同次方相加的表达式,通过重...
分类:其他好文   时间:2014-05-27 00:36:27    阅读次数:291
poj2109(Power of Cryptography)
神水。求n=log(k p)-> k=pow(p,1/n)。G++和C++输出不同,编译器原因。代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int main()10.....
分类:其他好文   时间:2014-05-23 23:31:42    阅读次数:237
Mediator模式
参考资料《大话设计模式》Mediator(中介者)模式:使各个对象不需要显式的相互调用,从而使其耦合松散。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ds_me...
分类:其他好文   时间:2014-05-23 10:13:17    阅读次数:331
【原创】对拍
1 @echo off2 :loop3 datamaker4 std5 me6 fc std.out me.out7 if not errorlevel 1 goto loop8 pause9 goto loop对拍模板。
分类:其他好文   时间:2014-05-23 03:43:23    阅读次数:295
OpenStack_Swift源码分析——创建Ring及添加设备源码详细分析
1 创建Ring 代码详细分析 在OpenStack_Swift——Ring组织架构中我们详细分析了Ring的具体工作过程,下面就Ring中增加设备,删除设备,已经重新平衡的实现过程作详细的介绍。 首先看RingBuilder类 def __init__(self, part_power, replicas, min_part_hours): #why 最大 2**32 ...
分类:其他好文   时间:2014-05-23 01:50:35    阅读次数:406
ZOJ3640 Help Me Escape(概率dp)
p Me Escape Time Limit: 2 Seconds      Memory Limit: 32768 KB Background     If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:其他好文   时间:2014-05-22 12:50:31    阅读次数:280
JSTL c:If 标签 test条件后追加一个空格导致判断失败
上联:no zuo no die why you try 下联:no try no high give me five 横批: let it go。 坑爹bug: 错误写法:  0 } ">true (最后一个大括号后多出一个空格,代码啥都不会输出) 正确写法:  0 }">true 正确写法 输出结果: true...
分类:Web程序   时间:2014-05-22 07:42:52    阅读次数:355
Android编程获取网络连接状态(3G/Wifi)及调用网络配置界面
http://www.mobiletuts.me获取网络连接状态随着3G和Wifi的推广,越来越多的Android应用程序需要调用网络资源,检测网络连接状态也就成为网络应用程序所必备的功能。Android平台提供了ConnectivityManager类,用于网络连接状态的检测。Android开发文...
分类:移动开发   时间:2014-05-22 00:13:35    阅读次数:339
Learn Branch Prediction From SimpleScalar Source (1)
作为一名CSer,最好的学习方式之一无疑是tracing code,看源代码——不知你此时是否与我一样想起了Linus那句名言「talk is cheap, show me the fucking code!」?可是对计算机体系结构来说,很多技术直接是由硬件实现的,因而也被蒙上一层神秘的面纱。好在还...
分类:其他好文   时间:2014-05-21 23:46:56    阅读次数:307
新开博客的地址
http://zhibinyang.me为了博客能够有更强的扩展性和更多地功能,现转移到专用的域名和空间,欢迎访问:
分类:其他好文   时间:2014-05-20 23:56:23    阅读次数:350
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!