自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

VZZmieshenquan的博客

不忘初心,方得始终

  • 博客(68)
  • 收藏
  • 关注

原创 【NEEPU OJ】2010--这道真是简单题

Description对于给定的正整数N,需要你计算 S = 1! + 2! + 3! + … + N!。Input输入在一行中给出一个不超过10的正整数N。Output在一行中输出S的值。输入样例 13输出样例 19代码#include <iostream>using namespace std;int main(){ int n,...

2019-01-28 19:38:35 203

原创 【NEEPU OJ】2009--这道才是简单题

Description“阴天,在不开灯的房间…当所有思绪都一点一点沉淀…爱情不就是精神鸦片…还是世纪末的无聊消遣…”不过,今天不讨论阴天,而是后天~如果今天是星期三,后天就是星期五;如果今天是星期六,后天就是星期一。我们用数字1到7对应星期一到星期日。给定某一天,请你输出那天的“后天”是星期几。Input输入第一行给出一个正整数D(1 <= D <=7),代表星期里的某...

2019-01-28 19:28:26 267

原创 【NEEPU OJ】2008--这是一道简单题

描述本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按样例格式打印所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。给定任意N个符号,不一定能正好组成一个沙漏。要求打印出的沙漏能用掉尽可能多的符号。输入输入在一行给出1个正整数N(<=1000)和一个符号,...

2019-01-28 19:20:45 255

原创 【Hackme CTF】Misc--flag

Description:All flags are in this format:FLAG{This is flag’s format}Solution:送分题,直接拿到flagFlag:FLAG{This is flag’s format}

2019-01-25 14:47:54 788

原创 【Hackme CTF】Crypto--easy

Description:526b78425233745561476c7a49476c7a4947566863336b7349484a705a3268305033303dSolution:HEX解码获得一段base64RkxBR3tUaGlzIGlzIGVhc3ksIHJpZ2h0P30=然后base64解码获得flagFlag:FLAG{This is easy, ri...

2019-01-22 16:22:58 630

原创 【Hackme CTF】Crypto--r u kidding

Description:EKZF{Hs’r snnn dzrx, itrs bzdrzq bhogdq}Solution:看密文知道应该是凯撒加密Flag:FLAG{It’s tooo easy, just caesar cipher}

2019-01-22 16:19:26 525

原创 【Hackme CTF】Crypto--nothard

Discription:Nm@rmLsBy{Nm5u-K{iZKPgPMzS2IlPc%_SMOjQ#O;uV{MM?PPFhk|Hd;hVPFhq{HaAH<Tips: pydoc3 base64Solution:base85解码:b’IZGECR33IRXSA6LPOUQGW3TPO4QGEYLTMUZTEIDFNZRW6ZDJNZTT67I=’再base32解码得...

2019-01-22 15:56:28 423

原创 【Hackme CTF】Crypto--classic cipher 1

Description:MTHJ{CWTNXRJCUBCGXGUGXWREXIPOYAOEYFIGXWRXCHTKHFCOHCFDUCGTXZOHIXOEOWMEHZO}Solve this substitution cipherSolution:直接在线解码得到FLAG{ SOLVING SUBSTITUTION CIPHER DECRYPTION IS ALWAYS EA...

2019-01-22 15:53:19 1322

原创 【CG CTF】Crypto--easy!

Description:密文:bmN0Znt0aGlzX2lzX2Jhc2U2NF9lbmNvZGV9 这题做不出来就剁手吧!Solution:最常见的base64解密Flag:nctf{this_is_base64_encode}

2019-01-22 15:42:54 443

原创 【CODE[VS]】1045--回文数

题目描述 Description若一个数(首位不为零)从左向右读与从右向左读都一样,我们就将其称之为回文数。例如:给定一个10进制数56,将56加65(即把56从右向左读),得到121是一个回文数。又如:对于10进制数87:STEP1:87+78 = 165 STEP2:165+561 = 726STEP3:726+627 = 1353 ...

2019-01-22 15:38:24 145

原创 【NEEPU OJ】1033--A+B和C

描述给定区间[-231, 231内的3个整数A、B和C,请判断A+B是否大于C。输入输入第1行给出正整数T(<=10),是测试用例的个数。随后给出T组测试用例,每组占一行,顺序给出A、B和C。整数间以空格分隔。输出对每组测试用例,在一行中输出“Case #X: true”如果A+B>C,否则输出“Case #X: false”,其中X是测试用例的编号(从1开始)。...

2019-01-22 15:22:20 169

原创 【NEEPU OJ】1038--Lamps

描述Big Street is an array consisting of n elements. There are street lamps in some positions of the array. If there is a lamp in the position i, the i-th element of the array is 1, otherwise the i-th...

2019-01-22 15:21:59 143

原创 【CODE[VS]】3062--自幂数

题目描述 Description自幂数是指一个x位数,它的每个位上的数字的x次幂之和等于它本身。如153 = 1 ^ 3 + 5 ^ 3 + 3 ^ 3 , 153就是一个自幂数。现在给你一个任务,求区间[m , n ]以内的自幂数。当然,0到9显然都是自幂数,所以我们就从两位数开始考虑。输入描述 Input Description只有一行两个数m , n ( 10 <= m ...

2019-01-21 09:55:02 393

原创 【NEEPU OJ】1000--最大整数

描述设有n个正整数,将它们连接成一排,组成一个最大的多位整数。输入第一行1个正整数n,(n<=100)第二行n个正整数ai,(ai<=1000)输出一行数字表示最大整数输入样例 1313 312 343输出样例 134331213输入样例 247 13 4 246输出样例 27424613代码(贪心法)#include

2019-01-21 09:54:51 208

原创 【NEEPU OJ】1001--Have a try

描述Alice have a word named “NEDUOJ”.She wants to make a gift to Bob.But Alice don’t know Bob like which one about “NEDUOJ”.She only know the frist word is Uppercase.Other words may be uppercase or ...

2019-01-21 09:54:32 253

原创 【NEEPU OJ】1002--A+B problem(1)

描述It is very easy.Just calculate a plus b, and then print it.输入only one line, have 2 variables,both -2^16<= a and b <=2^32.输出only one line, have 1 variables,m in number.输入样例 11 1...

2019-01-21 09:54:19 153

原创 【NEEPU OJ】1003--A+B Problem(2)

描述Your task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners.You must have found that some problems have the same titles with this one, yes, all these...

2019-01-21 09:54:01 182

原创 【NEEPU OJ】1008--A-B problem

描述Calculate the result of |A-B|.(Both A and B are integers.)输入The input contains two numbers in every line and seperated by a blank.The input numbers are not greater than 232. Input is terminate...

2019-01-21 09:53:51 149

原创 【NEEPU OJ】1009--Print a number

描述A prime number is a positive integer with exactly two positive divisors , which are 1 and itself.A composite number is a number which has more than two factors.Your task is to print the largest ...

2019-01-21 09:53:41 156

原创 【NEEPU OJ】1010--Good luck n' eatfried chicken tonight!

描述Good luck n’ eat fried chicken tonight!Sifat shishir is a naughty programmer. He loves participating in programming contests but if he sees there is no “Chicken fry” in contest food, he loses int...

2019-01-21 09:53:31 265

原创 【NEEPU OJ】1011--Power Function

描述Given x , print the left-most decimal digit of f(x) with sign.if x is a odd number then f(x) = (-1) * ( 2 ^ x ) ,Otherwise f(x) = 2 ^ x .note : 2 ^ x means, xth power of 2.输入Input starts wi...

2019-01-21 09:53:21 1370

原创 【NEEPU OJ】1013--Palindrome

描述Give the definition of a new word:A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward.We want you to write a program that can check w...

2019-01-21 09:53:11 145

原创 【NEEPU OJ】1016--A+B for Input-Output Practice

描述Your task is to calculate the sum of some integers.输入Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in th...

2019-01-21 09:52:59 84

原创 【NEEPU OJ】1017--Pascal's Triangle

描述Do you remember Pascal’s Triangle? If you don’t know it, you must know its another name,YangHui Triangle. The first 6 lines of the Pascal’s Triangle list as follow:11 11 2 11 3 3 11 4 6 4 11...

2019-01-21 09:52:43 194

原创 【NEEPU OJ】1018--Alice’s discount

描述Almost to Alice’s holiday, Alice wants to go home. And this time, it’s on black Friday, so all tickets are discounted!However, the price and discount rate for each ticket are different. So Alic...

2019-01-21 09:52:22 202

原创 【NEEPU OJ】1019--Output numbers

DescriptionThis is a simple problem about printing numbers!Give a random number and print numbers from 1 to it.InputThe input is only one number,N(1<=N<=650000).OutputOutput the numbe...

2019-01-21 09:52:03 186

原创 【NEEPU OJ】2002--我要拿奖

Description这题是一道大水题!真的是!名副其实的水题!!Input此题没有输入。Output请输出英文"I want prize!"(原样输出,不包括引号)输入样例 1(Empty)输出样例 1I want prize!代码(题目说的对,大水题)#include <cstdio>using nam

2019-01-21 09:51:41 141 1

原创 【NEEPU OJ】1032--我爱星号

描述小明遇到麻烦了!对!又是小明!小明有一个只包含数字、字母和星号的字符串!他想知道里面到底有多少星号!你能告诉他吗?输入输入一个字符串(只包含字母、数字和*),最长80个字符,不包含空格。输出统计并输出字符串中*的个数。输入样例 1I*love*ACM输出样例 12代码#include <iostream>#include <

2019-01-21 09:51:32 202 1

原创 【NEEPU OJ】1036--Attack on Tanks 2 - Easy Version

描述There is a battle between country A and country B. The army of country A attacked into a fortress of country B by tanks. The army of country A wants to kill all enemies in the fortress. However, t...

2019-01-21 09:51:13 186 1

原创 【NEEPU OJ】1037--Pslindrome Number

描述Alice is solving math problems these days. She is interested in a problem called ‘palindrome number’.If we read a number forward and backward as the same, then it is called palindrome number.Ali...

2019-01-21 09:51:01 190 1

原创 【NEEPU OJ】1040--Three Numbers

描述Oh, yes! Alice likes math very much. So, she is studying another problem.Divide 1, 2, …, 9 into three groups, and combine them into three 3-digit numbers, whose ratio is 1:2:3. Please calculate a...

2019-01-21 09:50:23 196 1

原创 【NEEPU OJ】1042--Xor-Sum

描述A xor-sum of a sequence of integers a_1, a_2,…a_m is defined as the bitwise XOR of all its elements: a_1⊕a_2⊕…⊕a_m, here ⊕ denotes the bitwise XOR operation which obeys the following rules:0⊕0=0...

2019-01-21 09:50:05 220

原创 【NEEPU OJ】2007--说反话

描述给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。输入测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用1个空格分开,输入保证句子末尾没有多余的空格。输出每个测试用例的输出占一行,输出倒序后的句子。输入样例 1Hello World Here I Co...

2019-01-21 09:49:35 158

原创 【NEEPU OJ】2011--不要假装简单题

描述美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧!输入输入在一行中给出正方形边长N(3<=N<=21)和组成正方形边的某种字符C,间隔一个空格。输出输出由给定字符C画出的正方形。但是注意...

2019-01-21 09:49:25 157

原创 【NEEPU OJ】2005--判断素数

描述本题的目标很简单,就是判断一个给定的正整数是否素数。输入输入在第一行给出一个正整数N(<=10),随后N行,每行给出一个小于231的需要判断的正整数。输出对每个需要判断的正整数,如果它是素数,则在一行中输出“Yes”,否则输出“No”。输入样例 1211111输出样例 1YesNo代码#include <iostream&

2019-01-21 09:49:11 243

原创 【CODE[VS]】3064--求和

题目描述 Description输入一个数x(x <= 10000),求数n使的S= 1+1/2+1/3+…+1/n>=x的最小n值。但如果在n > 5000000时都无法满足,则输出“Error!”(没有引号)输入描述 Input Description只有一个数x输出描述 Output Description如果数n使的S= 1+1/2+1/3+…+1/n...

2019-01-21 00:44:54 358

原创 【CODE[VS]】3061--计算

题目描述 Description输入两个整数及一个运算符,求运算结果。保证输入数据和运算结果均在longint范围内。输入描述 Input Description第一行为两个整数,第二行为+,-,*,/ 中的一个(运算符用char类型输入,/ 用div )输出描述 Output Description只有一个数,为运算结果样例输入 Sample Input样例输入11...

2019-01-21 00:44:21 272

原创 【CODE[VS]】3059--运费

题目描述 Descriptionjohn开了一家运货公司,制定了如下的运费的收取规定:<1>货物质量不超过10kg的收取50元<2>货物质量超过10kg,不超过100kg的收取180元<3>货物质量超过100kg,不超过300kg的收取300元<4>货物质量超过300kg,不超过1000kg的收取1000元

2019-01-21 00:44:03 199

原创 【CODE[VS]】3053--计算

题目描述 Description计算a1的m1次方,a2的m2次方,a3的m3次方,……,an的mn次方输入描述 Input Description输入数据:3行,第一行为n,第二行为a,a2……an,第三行为m1,m2,m3……mn输出描述 Output Description输出数据:结果样例输入 Sample Input40 8 1 35 0 15 5样例...

2019-01-21 00:43:44 143

原创 【CODE[VS]】3050--家庭问题

题目描述 Description小区进行人口普查,统计小区内家庭的最多人数,最少人数,平均人数输入描述 Input Description两行,第一行为家庭个数n,第二行输入n个家庭各有人数。输出描述 Output Description输出数据:3行,分到为最多人数,最少人数,平均人数(保留整数,四舍五入)样例输入 Sample Input85 7 2 3 4 4 ...

2019-01-21 00:43:11 195

空空如也

空空如也

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

TA关注的人

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