上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页

2016年1月28日

codeforces 620D D. Professor GukiZ and Two Arrays

该文被密码保护。 阅读全文

posted @ 2016-01-28 15:14 焰 阅读(59) 评论(0) 推荐(0) 编辑

2016年1月27日

nefu 84 五指山(扩展欧几里德)

摘要: 五指山 description 西游记中孙吾空大闹天宫,如来佛祖前来降伏他,说道:“我与你打个赌赛;你若有本事,一筋斗打出我这右手掌中,算你赢,再不用动刀兵苦争战,就请玉帝到西方居住,把天宫让你;若不能打出手掌,你还下界为妖,再修几劫,却来争吵。” 那大圣闻言,暗笑道:“这如来十分好呆!我老孙一筋斗 阅读全文

posted @ 2016-01-27 16:28 焰 阅读(229) 评论(0) 推荐(0) 编辑

POJ 1061 青蛙的约会(扩展欧几里德)

摘要: 青蛙的约会Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一... 阅读全文

posted @ 2016-01-27 14:01 焰 阅读(163) 评论(0) 推荐(0) 编辑

nefu 116 两仪剑法

摘要: 两仪剑法description两仪剑法是武当派武功的高级功夫,且必须2个人配合使用威力才大。同时该剑法招数变化太快、太多。设武当弟子甲招数变化周期为M,武当弟子乙招数变化周期为N,两弟子同时使用该剑法,当2人恰好同时达到招数变化周期结束时,威力最大,此时能将邪教妖人置于死地。请你计算威力最大时,每人... 阅读全文

posted @ 2016-01-27 12:05 焰 阅读(317) 评论(0) 推荐(0) 编辑

nefu 115 斐波那契的整除

摘要: 斐波那契的整除description已知斐波那契数列有如下递归定义,f(1)=1,f(2)=1, 且n>=3,f(n)=f(n-1)+f(n-2),它的前几项可以表示为1, 1,2 ,3 ,5 ,8,13,21,34…,现在的问题是想知道f(n)的值是否能被3和4整除,你知道吗?input输入数据有... 阅读全文

posted @ 2016-01-27 12:03 焰 阅读(243) 评论(0) 推荐(0) 编辑

2016年1月17日

HDU 2099 整除的尾数

摘要: 整除的尾数Problem Description一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?Input输入数据有若干组,每组数据包含二个整数a,b(0#include#includeusing namespace std;int main(){ int... 阅读全文

posted @ 2016-01-17 11:22 焰 阅读(153) 评论(0) 推荐(0) 编辑

2016年1月15日

Codeforces Round #339 (Div. 2) B. Gena's Code

摘要: B. Gena's CodeIt's the year 4527 and the tanks game that we all know and love still exists. There also exists Great Gena's code, written in 2016. The ... 阅读全文

posted @ 2016-01-15 20:08 焰 阅读(462) 评论(0) 推荐(0) 编辑

Codeforces Round #339 (Div. 2) A. Link/Cut Tree

摘要: A. Link/Cut TreeProgrammer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he is ... 阅读全文

posted @ 2016-01-15 20:06 焰 阅读(312) 评论(0) 推荐(0) 编辑

2016年1月13日

codeforces 616D Longest k-Good Segment(two pointer)

摘要: D. Longest k-Good Segment D. Longest k-Good Segment The array a with n integers is given. Let's call the sequence of one or more consecutive elements 阅读全文

posted @ 2016-01-13 14:03 焰 阅读(435) 评论(0) 推荐(0) 编辑

codeforces 616C The Labyrinth(flood fill)

摘要: C. The LabyrinthYou are given a rectangular field ofn × mcells. Each cell is either empty or impassable (contains an obstacle). Empty cells are marked... 阅读全文

posted @ 2016-01-13 11:24 焰 阅读(517) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页

导航