study

POJ1328

Written by  on July 10, 2014

今天期末考试成绩出来了,在认认真真地看完自己的各科成绩、GPA、排名过后,心里只是有一种说不出来的无奈感,果然,这个学期还是个学渣么,看着镜子里的自己,感觉什么也说不出来,也没什么好说的,只能继续刷POJ,刷完了到点就去健身,然后回来晚饭,晚饭完了继续刷POJ,最后总算是把POJ1328 給AC了。

[Read more...]

POJ2965

Written by  on June 17, 2014

原题POJ2965 The Pilots Brothers’ refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21431 Accepted: 8274 Special Judge

[Read more...]

POJ1753

Written by  on June 17, 2014

原题POJ1753 Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 36003 Accepted: 15706 Description Flip game is played on a rectangular 4×4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it’s black or white side up. Each round you flip 3 to 5 pieces, thus changing the color of their upper side from black to white and vice versa. The pieces to be flipped are chosen every round according to the following rules:

[Read more...]

GMP

Written by  on June 12, 2014

前天看见同学分享的一个微软面试题:求 y = sin(e^5120) 的值 然后就在网上搜了一下, 就找到了GMP这个玩意儿, GNU多重精度运算库(英语:GNU Multiple Precision Arithmetic Library,简称GMP或gmpal)是一个开源的任意精度运算库,支持正负数的整数、有理数、浮点数。它没有任何任何精度限制,只受限于可用内存。GMP有很多函数,它们都有一个规则的接口。它是C语言写成的,但用为其他很多语言做包装,包括Ada,C++,C#,OCaml,Perl,PHP和python。 GMP主要运用于密码程序和搜索,和计算机代数系统。 GMP的目标是成为最快的大数运算库, GMP是GNU项目的一部分,它在GNU宽通用公共许可证下发表。 GMP在许多计算机辅助代数系统中用于整数运算,如Mathematica和Maple。 GMP需要使用GNU(GCC编译器套装)编译。

[Read more...]