自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

何彬的博客

迷途小书童~

  • 博客(88)
  • 资源 (5)
  • 收藏
  • 关注

原创 博客搬迁

买了个新域名,换了个服务器,不打算在这边写博客了,搬迁至新地址:http://www.hebin.me,欢迎大家访问,原来博客的数据应该不会迁移

2016-03-30 19:29:51 605

原创 西普实验吧CTF-算术题

题目描述:一道小学算术题,但是好多老师不会,不知道为什么 解题链接: http://ctf1.shiyanbar.com/program/2/真是数学题,排除后发现只能在中间填写1,2,3,4,5,然后排出最大的情况:提交IL0V3Pr0Gr4ming_###),通过!

2016-03-29 18:38:59 2545

原创 西普实验吧CTF-IPv4

题目描述:截止到2014.2.23,亚太互联网络信息中心分配给中国(不含港、澳、台及钓鱼岛)的IPv4地址是多少个? 解题链接: http://ctf1.shiyanbar.com/ppc/delegated-apnic-20140223.gz直接读取文件,代码:using System;using System.Collections.Generic;using

2016-03-29 18:14:48 1141

原创 西普实验吧CTF-考考你的程序功底

题目描述:吆喝!你给我来真的是吧,那我不客气了哈! 解题链接: http://ctf1.shiyanbar.com/program/1/网址上面是一个图片,借鉴一下别人打的数:{{8,2,22,97,38,15,0,40,0,75,4,5,7,78,52,12,50,77,91,8},{49,49,99,40,17,81,18,57,60,87,17,40,98,4

2016-03-29 18:03:06 1971

原创 西普实验吧CTF-Hashkill

题目描述:6ac66ed89ef9654cf25eb88c21f4ecd0是flag的MD5码,(格式为ctf{XXX_XXXXXXXXXXX_XXXXX})由一个0-1000的数字,下划线,纽约的一个区,下划线,一个10000-15000的数字构成。直接暴力解。。。代码:using System;using System.Security.Cryptography;publ

2016-03-29 17:35:40 3034 1

原创 西普实验吧CTF-分数拆分

题目描述:存在这样的一个等式,1/400=1/x+1/2y,(x>y)。你的任务就是求出共有多少对这样的正整数x和y,使得该等式成立。(提示:你只需要求出有多少对,而不必输出这些X,Y对具体是多少)hint:CTF{xxx}对x求解,得到x=(400*y)/(y-200),得到y下限200,x=y时,得到y上限600,C#跑一下,代码:using System; publi

2016-03-29 15:13:27 1513

原创 西普实验吧CTF-杯酒人生

题目描述:显示解凯撒密码:using System;using System.Collections.Generic;namespace a1{ class Program { public static void Main(string[] args) { string s="HTRUZYJW"; char[] ch=s.ToCharArray()

2016-03-17 13:35:55 3289

原创 西普实验吧CTF-双基回文数

题目描述:计算大于正整数1600000的最小双基回文数双基回文数:一个数的n进制(2≤n≤10)是回文数的至少存在2种,则这个数是双基回文数,代码:using System;using System.Collections.Generic;namespace a1{ class Program { public static bool Judge(string s){

2016-03-17 12:55:42 1233

原创 西普实验吧CTF-约瑟夫环

题目描述:总共有2 * k个人报数,前面k个是好人,后面k个是坏人,从第一个好人开始报数,报道m的人要死去。然后从死人的下一个活人继续从头开始报数,报道m的人死去,以此类推。当k = 12时,问m为何值时,坏人全部死去之前不会有好人死去。这题之前做过,就是一个循环数组的遍历,之前打表了,代码:#includeint main(){ int n; int a[15]={0,

2016-03-17 12:37:11 1946

原创 西普实验吧CTF-二叉树遍历

题目描述:给出二叉树的前序遍历序列和中序遍历序列分别是:DBACEGF和ABCDEFG,需要编写程序通过这两组数据求出该树的后序遍历序列。key格式为:CTF{}直接画出这颗二叉树   D                                   /       \                                B         E   

2016-03-17 12:29:49 1980

原创 西普实验吧CTF-聪明的打字员

题目描述:阿兰是某机密部门的打字员,她现在接到一个任务:需要在一天之内输入几百个长度固定为6的密码。当然,她希望输入的过程中敲击键盘的总次数越少越好。 不幸的是,出于保密的需要,该部门用于输入密码的键盘是特殊设计的,键盘上没有数字键,而只有以下六个键:Swap0, Swap1, Up, Down, Left, Right,为了说明这6个键的作用,我们先定义录入区的6个位置的编号,从左至右依

2016-03-17 11:08:05 1209 1

原创 西普实验吧CTF-斐波那契数列

题目描述:数列A满足An = An-1 + An-2 + An-3, n >= 3 编写程序,输入A0, A1 和 A2的值1 1 1时, 计算A99的高八位。key格式:CTF{}简单的大数相加,代码:#include#include#define N 10000 int str[N][260];int main(){ memset(str,0,si

2016-03-17 10:49:19 3023 1

原创 杭电2132

题目描述:We once did a lot of recursional problem . I think some of them is easy for you and some if hard for you.Now there is a very easy problem . I think you can AC it.  We can define sum(n) as f

2016-03-16 15:07:48 673

原创 杭电1066

题目描述:The expression N!, read as "N factorial," denotes the product of the first N positive integers, where N is nonnegative. So, for example, N N! 0 1 1 1 2 2 3 6 4 24 5 120 10 36288

2016-03-16 11:25:18 734

原创 杭电1075

题目描述:Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves. Now Ignatiu

2016-03-16 10:02:21 590

原创 0CTF 2016 RSA?(未完成)

分值:2分描述:It seems easy, right?Tip: openssl rsautl -encrypt -in FLAG -inkey public.pem -pubin -out flag.enc首先是把文件下载下来,看到一个文件和一个public.pem用openssl解析public.pem,得到:openssl rsa -pubin -text -m

2016-03-13 17:28:57 2694 4

原创 杭电2572

题目描述:最后的挑战终于到了!站在yifenfei和MM面前的只剩下邪恶的大魔王lemon一人了!战胜他,yifenfei就能顺利救出MM。Yifenfei和魔王lemon的挑战很简单:由lemon给出三个字符串,然后要yifenfei说出第一串的某个子串,要求该子串长度最小,并且同时包含第2个串和第3个串。特别地,如果有多个这样的子串,则请输出字母序最小的一个。

2016-03-13 17:24:14 616

原创 杭电2571

题目描述:穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷宫中被困1小时以上,则必死无疑!可怜的yifenfei为了去救MM,义无返顾地跳进了迷宫。让我们一起帮帮执着的他吧!命运大迷宫可以看成是一个两维的方格阵列,如下图所示:y

2016-03-12 16:13:26 470

原创 杭电2802

题目描述:Giving the N, can you tell me the answer of F(N)?数学题:推导一下:f(2*n)=8*n^3-20f(2*n-1)=4*n^3-3*n^2代码:#include#includeint main(){ int n; while(scanf("%d",&n)!=EOF && n!=

2016-03-12 12:26:46 373

原创 杭电2535

题目描述:美国大选是按各州的投票结果来确定最终的结果的,如果得到超过一半的州的支持就可以当选,而每个州的投票结果又是由该州选民投票产生的,如果某个州超过一半的选民支持希拉里,则她将赢得该州的支持。现在给出每个州的选民人数,请问希拉里至少需要赢得多少选民的支持才能当选?排序然后从小到n/2累加即可,AC代码:#include#includeusing namesp

2016-03-10 19:56:30 423

原创 杭电2537

题目描述:8球是一种台球竞赛的规则。台面上有7个红球、7个黄球以及一个黑球,当然还有一个白球。对于本题,我们使用如下的简化规则:红、黄两名选手轮流用白球击打各自颜色的球,如果将该颜色的7个球全部打进,则这名选手可以打黑球,如果打进则算他胜。如果在打进自己颜色的所有球之前就把黑球打进,则算输。如果选手不慎打进了对手的球,入球依然有效。现在给出打进的球(白球除外)的顺序,以及黑球由哪方打进

2016-03-10 15:58:48 440

原创 杭电2539

题目描述:在足球比赛中,有不少赛事,例如世界杯淘汰赛和欧洲冠军联赛淘汰赛中,当比赛双方经过正规比赛和加时赛之后仍然不分胜负时,需要进行点球大战来决定谁能够获得最终的胜利。点球大战的规则非常简单,两方轮流派出球员罚点球,每方各罚5个。当5轮点球结束以后如果仍然不分胜负,则进入一轮定胜负的阶段。两方各派一名球员罚点球,直到有一方罚进而另一方没有进为止。在北美职业冰球联赛中,也有点球大战。与足球

2016-03-10 15:48:05 360

原创 别人发来的题,没答案

题目描述:自己目测对的代码:#include#include#include#includeusing namespace std;#define M 2000#define NotANu 10int Map[M][M];int Queue[M];int n,m,k,t;int Count;int dfs(int x,int y){ if(Map[x][y

2016-03-09 20:40:11 339

原创 杭电2501

题目描述:有一个大小是 2 x n 的网格,现在需要用2种规格的骨牌铺满,骨牌规格分别是 2 x 1 和 2 x 2,请计算一共有多少种铺设的方法。首先全是1有1种,接下来用1个,2个,……n/2个去填充,设f(n,k)为n内k个2的填充种数,则i个有pow(2,i)*f(n,i)种,写个递归然后累加即可,AC代码:#include#includeint Combi

2016-03-09 16:31:03 362

原创 杭电1711

题目描述:Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K + 1

2016-03-09 12:45:33 352

原创 ZJNU acm 共469题AC代码

代码都是我抓包抓下来的,全在压缩包内,所有代码经过测试可用,但是有些编译器是G++,有些是VC++,提交的时候如果报错就换一种提交,压缩包如下:ACM答案-百度云

2016-03-09 00:07:28 1364

原创 杭电1217

题目描述:Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0

2016-03-08 12:43:20 374

原创 纪念进5000~

虽然很low的排名,基本上是水题,但是进5000还是有纪念意义的

2016-03-08 11:37:31 658 1

原创 杭电1211

题目描述:RSA is one of the most powerful methods to encrypt data. The RSA algorithm is described as follow:> choose two large prime integer p, q> calculate n = p × q, calculate F(n) = (p - 1) ×

2016-03-08 11:33:28 533

原创 杭电1219

题目描述:Ignatius is doing his homework now. The teacher gives him some articles and asks him to tell how many times each letter appears.It's really easy, isn't it? So come on and AC ME.水题,注意格式,

2016-03-08 11:12:23 578

原创 杭电1228

题目描述:读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出.水题,注意格式,直接上AC:using System;namespace a1{ class Program { public static int Trans(string s){ if(s=="zero") return 0;

2016-03-08 00:04:23 269

原创 杭电1213

题目描述:Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the friends know each

2016-03-07 23:47:30 362

原创 杭电1202

题目描述:每学期的期末,大家都会忙于计算自己的平均成绩,这个成绩对于评奖学金是直接有关的。国外大学都是计算GPA(grade point average) 又称GPR(grade point ratio),即成绩点数与学分的加权平均值来代表一个学生的成绩的。那么如何来计算GPA呢?一般大学采用之计分法 A90 - 100 4 点 B80 - 89 3 点 C70

2016-03-07 23:05:25 422

原创 杭电1200

题目描述:Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random le

2016-03-07 22:37:11 421

原创 杭电1284

题目描述:在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。背包问题,不过3,2用完后1肯定可以填满剩下的空当,AC代码:using System;namespace a1{ class Program { public static void Main(string[] args) { int n;

2016-03-07 21:09:12 322

原创 杭电2071

题目描述:There are some students in a class, Can you help teacher find the highest student .简直是最水的题了,不过打算从后面开始要用C#提交了,所以先水一把,AC代码:using System;using System.Collections.Generic;using System.L

2016-03-07 21:01:59 642

原创 杭电1164

题目描述:Eddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided into the multiply of prime number, but he can't write program, so

2016-03-07 20:31:16 1198

原创 杭电1250

题目描述:A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) = 1, F(2) = 1, F(3) = 1,F(4) = 1, F(n>4) = F(n - 1) + F(n-2) +

2016-03-06 13:57:26 478

原创 杭电1098

题目描述:Ignatius is poor at math,he falls across a puzzle problem,so he has no choice but to appeal to Eddy. this problem describes that:f(x)=5*x^13+13*x^5+k*a*x,input a nonegative integer k(k<10000),t

2016-03-05 20:21:55 393

原创 杭电1019

题目描述:The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 15 is 105.这道题

2016-03-05 19:34:33 310

动态网页制作实例教程-Dreamweaver ASP与SQL

ASP和SQL的开发技术,适合新手快速上手,不妨下载下来阅读一下

2014-06-18

HttpClient 3.x to HttpComponents HttpClient 4.x

帮助程序员快速从Apache的HttpClient 3.x升级到HttpClient 4.x

2014-06-18

BST树的构建与应用

BST树的构建与应用,二叉排序树的创建,较简单

2013-04-20

链表及其多项式相加-链式存储

链表及其多项式相加-链式存储,基础的数据结构

2013-04-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除