1.需要组装要展示的数据,至于如何怎样去设计数据模型,看你要展示的图形和需要的数据就行了。来个简单的。实体类,只有两个属性,也可以使用Bean里面的实体类,无所谓了。Java代码 packagecom.golden.entity;publicclassDoughnut{publicDoughnut(...
分类:
其他好文 时间:
2014-09-01 12:17:03
阅读次数:
247
利用题目中给出的公式和hint可以得到两个有用的公式:
phi^(n) = phi^(n-1)+phi^(n-2)
2*(phi^n) = phi^(n+1)+phi^(n-2)
可以计算出phi^100远大于10^9,所以推测最后得到的phi进制的数整数和小数部分应该不会超过100位,事实表明,50位就能过。
所以最终变成了简单的模拟。
Golden Radio Base
...
分类:
其他好文 时间:
2014-08-28 00:56:08
阅读次数:
263
题目:hdoj 3820 Golden Eggs
题意:给出一个矩阵,然后当前有三种选择,放一个金蛋,放一个银蛋,或者不放,然后给出每个格子放金蛋或者银蛋的得分,如果金蛋相邻的话每个得分要减掉cost1,银蛋相邻的话每个减去cost2得分,问最大得分多少?
分析:做这个题目推荐先做hdoj 1659 ,3657点击打开链接 ,这个题目相当于前两个的融合在加点变化。
首先我们发...
分类:
其他好文 时间:
2014-08-27 20:37:18
阅读次数:
264
直接上图
Pomelo服务器端框架简单地可分为两层,即链接层(Connector、Gate)和服务层(Logic、Master),也叫前端服务器(frontend server)和后端服务器(backend server)。
链接层直接与客户端进行网络通信,客户端的请求通过链接层转发到服务层的Logic进行处理,处理完后将结果交由Connector转发给客户端。
这样的结构可...
分类:
其他好文 时间:
2014-08-24 19:26:32
阅读次数:
202
Oracle Golden Gate软件是一种基于日志的结构化数据复制备份软件,它通过解析源数据库在线日志或归档日志获得数据的增量变化,再将这些变化应用到目标数据库,从而实现源数据库与目标数据库同步。Oracle Golden Gate可以在异构的IT基础结构(包括几乎所有常用操作系统平台和数据库平...
分类:
其他好文 时间:
2014-08-18 18:28:02
阅读次数:
235
##TTL TTL集成电路的主要型式为晶体管-晶体管逻辑门 (transistor-transistor logic gate),TTL大部分都采用5V 电源。 - 输出高电平Uoh和输出低电平Uol Uoh≥2.4V,Uol≤0.4V - 输入高电平和输入低电平 Uih≥2.0...
分类:
其他好文 时间:
2014-08-18 12:42:55
阅读次数:
183
Friendship
Time Limit: 3 Seconds
Memory Limit: 32768 KB
A friend is like a flower,
a rose to be exact,
Or maybe like a brand new gate
that never comes unlatched.
A friend i...
分类:
其他好文 时间:
2014-08-16 19:52:01
阅读次数:
269
There is one last gate between the hero and the dragon. But opening the gate isn't an easy task.
There were n buttons list in a straight line in front of the gate and each with an integer on it. Like...
分类:
其他好文 时间:
2014-08-11 21:22:33
阅读次数:
341
比较两个串计算后的大小 主要是q^2=q+1 明显是一个斐波那契数列
100000位肯定超LL 我在每一位只取到两个以内 居然ac了
#include
using namespace std;
int a[100020];
char s1[100020],s2[100020];
int main()
{
scanf("%s%s",s1,s2);
int len1=strlen(...
分类:
其他好文 时间:
2014-08-11 12:00:52
阅读次数:
274
搞到凌晨4点一个没出,要gg了。A. Golden Systemhttp://codeforces.com/contest/458/problem/A 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const...
分类:
数据库 时间:
2014-08-11 11:41:42
阅读次数:
285