![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
比赛
文章平均质量分 72
清溪浅水
这个作者很懒,什么都没留下…
展开
-
A Bit Fun
Problem DescriptionThere are n numbers in a array, as a0, a1 ... , an-1, and another number m. We define a function f(i, j) = ai|ai+1|ai+2| ... | aj . Where "|" is the bit-OR operation. (i The p原创 2013-09-14 15:48:18 · 694 阅读 · 0 评论 -
A - LQX的作业
DescriptionLQX在做作业时遇到一个难题不会做,请你帮她计算一下:在N个独立地分布于0和1之间的随机变量排为非递减顺序之后,这些变量中第M个小于等于x的概率是多少?Input第一行一个整数T(T每组数据一行,依次是N M x(1Output每组数据对应一行输出,即概率是多少,四舍五入保留4位小数。Sample Input3原创 2013-12-15 21:13:20 · 704 阅读 · 0 评论 -
问题 E : 坤哥的难题v(循环)
题目描述八百年才能出现的好事接二连三的发生在了坤哥头上,可是你们总是让他的好事泡汤。坤哥不愿意了,他决心考考你们,先给你一个六位数,然后曲这个六位数中间四位,然后在让这个四位数平方,得到的这个数在取它的后六位。如此反复,一直做到找到循环节。例如给你65554这个数;Num 4digits square 6digits or fewe原创 2014-02-27 20:29:38 · 774 阅读 · 0 评论 -
B - An easy problem
DescriptionWhen Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of dough ..” , “100 yuan buy 100 pig” .etc..One day Tedd原创 2014-03-16 22:36:24 · 573 阅读 · 0 评论 -
hdu——2603——0 or 1
Problem DescriptionSolving problem is a interesting thing. Yifenfei like to slove different problem,because he think it is a way let him more intelligent. But as we know,yifenfei is weak in math. Wh原创 2014-03-16 22:38:35 · 750 阅读 · 2 评论 -
G - Ternary Calculation(水)
DescriptionComplete the ternary calculation.InputThere are multiple test cases. The first line of input contains an integer T indicating the number of test cases. For each test case:原创 2014-04-14 19:05:16 · 1048 阅读 · 0 评论 -
L - Access System(水)
DescriptionFor security issues, Marjar University has an access control system for each dormitory building.The system requires the students to use their personal identification cards to open the g原创 2014-04-14 19:09:32 · 657 阅读 · 0 评论 -
J - What day is that day?(zoj水题)
ZOJ Problem Set - 3785What day is that day?Time Limit: 2 Seconds Memory Limit: 65536 KBIt's Saturday today, what day is it after 11 + 22 + 33 + ... + NN days?InputThere are multip原创 2014-04-14 19:43:15 · 926 阅读 · 0 评论 -
B - Break Standard Weight
DescriptionThe balance was the first mass measuring instrument invented. In its traditional form, it consists of a pivoted horizontal lever of equal length arms, called the beam, with a weighing p原创 2014-04-16 20:10:52 · 519 阅读 · 0 评论 -
第六届华为创新杯编程大赛
A有一群兔子和鸽子,共有h个头,f只原创 2014-05-06 14:54:35 · 1204 阅读 · 0 评论 -
C - YesOrNo
DescriptionA国认为如果字符串a可以通过操作X变成字符串b,就认为是一样的字符串。操作X:将字符串分为两部分,然后调换位置,操作次数不限。W=xy,W’=yx。Input有多组测试数据,处理到文件结尾。每组测试数据包含两个个字符串(包含英文字符和数字,长度为[1,500000])。Output对于每组测试数据,如果两个字符串是相同的,输出Y原创 2014-04-02 21:16:56 · 755 阅读 · 0 评论 -
K - Yet Another Story of Rock-paper-scissors
DescriptionAkihisa and Hideyoshi were lovers. They were sentenced to death by the FFF Inquisition. Ryou, the leader of the FFF Inquisition, promised that the winner of Rock-paper-scissors would be原创 2014-04-27 20:24:12 · 880 阅读 · 0 评论 -
D - Draw Something Cheat(水)
DescriptionHave you played Draw Something? It's currently one of the hottest social drawing games on Apple iOS and Android Devices! In this game, you and your friend play in turn. You need to pick原创 2014-04-27 19:53:45 · 740 阅读 · 0 评论 -
fzu——Problem 2034 Password table
DescriptionDo you know password table? A password table is used to protect the security of the online account. When a user needs to login to his/her online account or pay for money, he/she may need原创 2013-11-11 11:14:20 · 547 阅读 · 0 评论 -
fzu——单词问题
Description给出一个完整的句子,这个句子中不包含不可见字符或者空格,于是在这个句子中有许多不同的单词。一个单词是指一串连续的最长的英文字母(大写或小写)。例如"#abc#"中,"abc"就是一个单词,而"ab","bc"都不算单词。Input输入包含多组数据 输入数据第一行是一个句子,只包含可见字符(不包含空格)。句子长度不超过 100。Output按原创 2013-11-11 09:28:42 · 613 阅读 · 0 评论 -
sdut——The area
题目描述Ignatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a straight line. The picture below shows the area. Now given all the in原创 2013-11-02 11:02:43 · 560 阅读 · 0 评论 -
sdut——487-3279
题目描述Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Wa原创 2013-11-02 18:25:08 · 614 阅读 · 0 评论 -
sdut——选夫婿1
题目描述 倾国倾城的大家闺秀潘小姐要选夫婿啦!武林中各门各派,武林外各大户人家,闻讯纷纷前来,强势围观。前来参与竞选的男生藏龙卧虎,高手云集,才子遍布,帅哥纷纭,更不乏富二代,官二代,可谓声势空前。 每个人参与竞选的帅哥除了进行一段激情洋溢的求婚演讲以外,还要报上自己姓名、身高和体重,以及个人简历。最后再进行文武选拔,最后夺魁者方能得到潘小姐的芳心。 潘原创 2013-11-02 11:32:29 · 649 阅读 · 0 评论 -
sdut——GCC
题目描述The GNU Compiler Collection (usually shortened to GCC) is a compiler system produced by the GNU Project supporting various programming languages. But it doesn’t contains the math operator “!”原创 2013-11-02 17:27:57 · 759 阅读 · 0 评论 -
sdut——图案打印
题目描述一年一度的植树节就要到了,计算机学院学生准备在学院教学楼门前的空地上种植树木。为使树木排列得更加美观,大家决定把树木排列成菱形。现在告诉你我们所拥有的树木能排列成边长为N的菱形,请你编程输出树木所排列的图案(用*号代表树木)。输入一个整数N(1≤N≤10)。输出排列成菱形图案的*号。请注意在图案中:每行树木之间无空行,每列树木之间均有一个空列。原创 2013-11-02 15:43:11 · 700 阅读 · 0 评论 -
sdut——魔幻数字47
题目描述数字47一向被数学界的人认为是很魔幻的一个数字,和47有关的任务被认为是魔幻任务。现在有一个简单的魔幻任务,给定a和b,打印所有在 以a,b为端点的闭区间 中最后两位为47的整数,你能一次AC吗??输入第一行为一个整数n,表示有多少组测试数据。(n 第2-n+1行,每行两个整数,分别代表a,b。(a,b 输出对于每组输入,输出在以a,b为端点原创 2013-11-02 16:38:28 · 856 阅读 · 0 评论 -
An Awful Problem(待改正)
DescriptionIn order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when the day of the month was a prime number. Hiqivenfin was happy with that. But several days later, his原创 2013-11-17 21:34:59 · 543 阅读 · 0 评论 -
fzu——Problem 2088 最长队名
Problem DescriptionJack所在的班级决定组团报名参加FZU校赛。为了体现班级的团结和睦,班长决定用班级所有人的名字连起来组成一个史上最长最醒目的队名。因为听说在分数相同的情况下,队名字典序小的会排在更前面,班长还希望连成的史上最长队名拥有最小的字典序。 Input输入数据第一行包含一个整数T,表示测试数据的组数。对于每组测试数据:第一行为一个整数原创 2013-11-04 18:15:52 · 782 阅读 · 0 评论 -
fzu——Problem 2091 播放器
Problem Descriptionshadow喜欢听音乐,于是v11自己写了个播放器送给了shadow,这个播放器有一个播放列表,一个“下一首”按钮,一个“上一首”按钮,还有一个播放记录。一开始播放器会播放播放列表中的第一首歌,当按下“下一首”按钮时,它会播放当前歌曲在播放列表中的下一首歌,若当前歌曲就是播放列表中的最后一首歌时,它仍会播放播放列表中的最后一首歌;当按下原创 2013-11-04 18:40:07 · 616 阅读 · 0 评论 -
fzu——Problem 2089 数字游戏
Problem Description现在,给你2个整形数字A和B。你的任务就是计算出A+B的结果C后,统计C中数字5出现的次数。 Input输入数据第一行包含一个整数T,表示测试数据的组数。对于每组测试数据:输入两个整数a,b(-2*10^9 Output对于每组测试数据,输出一行,包含一个整数,表示数字5出现的次数。 Sample Input原创 2013-11-04 18:34:30 · 743 阅读 · 0 评论 -
救基友记2-水题
题目描述 屌丝WP的好基友CZ又被妖鬼给抓走了(CZ啊,CZ….怎么说你好呢….吃着锅里想着碗里),为了求出CZ,他只好去求高富帅RQ, RQ给WP出了到题目说只要你能解决这道题目,他就答应帮屌丝WP去解救好基友CZ。题目描述如下: 给你一个字符串s,长度小于1000,让你找出该字符串所包含的所有子串"cRazY" 或者"CraZy",并将找出的子串的大写字母变成小写字母,小原创 2013-11-07 21:28:27 · 906 阅读 · 0 评论 -
基友记
题目描述 WP已经隐藏不了自己对CZ的爱慕之情,终于在11.10这天向CZ表达了自己的爱意。”请做我的好基友,我愿意一辈子照顾你,我们在一起吧?”。 CZ笑了笑说,我喜欢高智商的程序员,你能用程序实现我的一个问题我们就在一起。题目描述如下:给你n个数(1<= n ),这个n数的取值范围为[0,n - 1],问任意交换其中两个数所形成的的不同的序列有多少种?机智的原创 2013-11-07 21:20:01 · 905 阅读 · 0 评论 -
高中数学
题目描述高中数学大家都学过数列,其中一个重要的概念就是数列的通项,可以代表数列中每一项的一个表达式。 今天我们的问题就跟通项有关系,说,给你一个数列的通项和数列中的前几项,希望你能求出它的第n项。 通项表达式如下: F(1) = 0; F(2) = 1; F(n) = 4*F(n-1)-5*F(n-2);输入输入数据第一行是一个正整数T,T输原创 2013-11-07 21:26:48 · 1148 阅读 · 0 评论 -
“浪潮杯”第五届ACM大学生程序设计竞赛
E:Factorial求阶乘#include #include #include using namespace std;int fun(int n){ int sum=1; for(int i=1;i<=n;i++) { sum*=i; } return sum;}int main(){ int t; cin>>t;原创 2014-05-13 19:52:07 · 969 阅读 · 0 评论