![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他and有趣的题目
文章平均质量分 69
idealistic
编程渣渣~~
展开
-
***【杭电】5969最大位或
最大的位或Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1199 Accepted Submission(s): 484Problem DescriptionB君和G君聊天的时候想到了如下的问题。给定自然原创 2017-03-16 18:09:29 · 260 阅读 · 0 评论 -
codeforce 246 C
General Payne has a battalion of n soldiers. The soldiers' beauty contest is coming up, it will last for k days. Payne decided that his battalion will participate in the pageant. Now he has choose t原创 2016-12-16 10:32:21 · 235 阅读 · 0 评论 -
**第四届“图灵杯”NEUQ-ACM程序设计竞赛(个人赛)C粉丝与汉诺塔
左岸zeroContest1065 - 第四届“图灵杯”NEUQ-ACM程序设计竞赛(个人赛)C粉丝与汉诺塔题目描述苟利国家生死以,岂因福祸避趋之?作为ACM真正的粉丝,应该都听闻过汉诺塔问题,汉诺塔问题是这样的: 有三根柱子,编号A,B,C柱,初始情况下A柱上有n个盘子,小盘子在上大盘子在下,n个盘子大小各不一样,每次移动一个最上层的盘转载 2016-12-09 15:40:07 · 693 阅读 · 0 评论 -
【codeforce508C】. Anya and Ghosts
C. Anya and Ghoststime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnya loves to watch horror movies. In the best tra原创 2016-12-07 17:32:11 · 250 阅读 · 0 评论 -
【图灵杯】薯条问题
题目描述薯片这次又遇到问题了==薯片有n个薯条棒,第i个薯条棒的长度为i,由于薯片能瞬间移动,所以薯片能在1秒内从这n个薯条棒里面选择一个或者多个,吃掉同样长的一部分,并且被吃掉部分的长度是正整数,问薯片至少多少时间能把这n个薯条棒都吃完?输入多组数据输入,每组数据第一行输入一个n(19).输出对于每组数据,输出最短的时间.样例输入34原创 2016-11-19 22:49:33 · 683 阅读 · 0 评论 -
【图灵杯】一个简单的问题
题目描述这是一个三层的字母塔。如何输出一个任意层数的字母塔呢?输入一个数字n(1输出n层的字母塔样例输入4样例输出 A ABA ABCBAABCDCBAcode:#include#includeint main(){ int n,t; while(~scanf("%d",&原创 2016-11-19 22:41:01 · 1386 阅读 · 0 评论 -
【杭电2050】折线分割平面-递推
折线分割平面Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27229 Accepted Submission(s): 18479Problem Description我们看到过很多直线分割平面的题目,今天的这原创 2016-11-19 22:25:19 · 410 阅读 · 0 评论 -
【杭电1214】圆桌会议
圆桌会议Crawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionInputOutputS原创 2016-11-13 21:52:31 · 334 阅读 · 0 评论 -
*Fxx and string
Fxx and stringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 715 Accepted Submission(s): 311Problem DescriptionYoung theoretica原创 2016-11-01 17:24:25 · 337 阅读 · 0 评论 -
【杭电1498】50years,50colors二分最大匹配--最小点覆盖
二分图Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1498DescriptionOn Octorber 21st, HDU 50-year-celebration, 50-color bal原创 2016-08-19 15:10:31 · 425 阅读 · 0 评论 -
【codefoces】Round #402 Div.2 B
题意:给出一个数,删除某些位上的数字,使其能够被10的k次方整除 记录每个0出现的位置,并统计个数code:#include#include#includeusing namespace std;int main(){ char s[11];int num[20]; int k; while(~scanf("%s%d",s,&k)){ int le=原创 2017-02-27 11:10:16 · 335 阅读 · 0 评论 -
【51nod】1521一维战舰
1521一维战舰 爱丽丝和鲍博喜欢玩一维战舰的游戏。他们在一行有n个方格的纸上玩这个游戏(也就是1×n的表格)。在游戏开始的时候,爱丽丝放k个战舰在这个表格中,并不把具体位置告诉鲍博。每一只战舰的形状是 1×a 的长方形(也就是说,战舰会占据a个连续的方格)。这些战舰不能相互重叠,也不能相接触。然后鲍博会做一系列的点名。当他点到某个格子的时候原创 2017-02-28 17:00:22 · 305 阅读 · 0 评论 -
【杭电】1466计算直线的交点数【DP】
计算直线的交点数:总的交点数=平行线组与不平行线组之间的交点+不平行线内部之间的交点; 即(n-b)*b+k k为不平行线内部之间的交点数原创 2017-03-11 16:08:04 · 272 阅读 · 0 评论 -
【codeforce】A. Potion of Immortality
A. Potion of Immortalitytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe world famous scientist Innokentiy has ju原创 2017-03-20 21:41:13 · 323 阅读 · 0 评论 -
【CDOJ】动态规划
谭爷的黑暗沙拉 Edit Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)SubmitStatus 谭爷有nn种不同种类的食材(水果&蔬菜),他想做出一份总重量为kk的黑暗沙拉。他想让机智的你告诉他,他能做多少种不同的黑暗沙拉!说明:原创 2017-03-27 20:54:08 · 320 阅读 · 0 评论 -
规律题
DescriptionYuta gives Rikka a chess board of size $n \times m$. As we all know, on a chess board, every cell is either black or white and every two cells that share a side have different color原创 2017-03-06 21:06:44 · 446 阅读 · 0 评论 -
【HPUOJ】Triangles
已知一个圆的圆周被N个点分成了N段等长圆弧,求任意取三个点,组成锐角三角形的个数。入多组数据,每组数据一个N(N 输出对于每组数据,输出不同锐角三角形的个数。样例输入3 4 5样例输出1 0 5题解:可以分为两种情况:n为偶数和n为奇数 1.n为偶数时,假设点的标号为1,2,3...k,k+1...2k;2k=n,取一个点作为三角形的一个顶点a,a取原创 2017-02-25 17:07:39 · 340 阅读 · 0 评论 -
【杭电】4278八进制转化为十进制
Faulty OdometerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2023 Accepted Submission(s): 1400Problem Description You are give原创 2017-03-17 19:09:46 · 238 阅读 · 0 评论 -
***【杭电6012】Lotus and Horticulture
Lotus and Horticulture Accepts: 91 Submissions: 641 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)问题描述这几天Lotus对培养盆栽很感兴趣,于是她想搭建一个温原创 2017-01-22 15:23:09 · 381 阅读 · 0 评论 -
**【HPUOJ】
Bet时间限制: 1 Sec 内存限制: 128 MB提交: 10 解决: 5题目描述Josnch星球是一个赌博之风盛行的星球。每个人一出生就有一定数额的钱,之后的所有收入只能由赌博获得(OMG,如果RP不好,输光了所有的钱。。。)假设赌博公司的某场赌博有 N 个结果,每个结果能获得的赔率比分别是 a[1],a[2]...a[N]。假设现在XXX有 X原创 2017-02-22 21:24:37 · 457 阅读 · 0 评论 -
玲珑-动态规划
1032 - A-BTime Limit:1s Memory Limit:128MByteSubmissions:684Solved:127DESCRIPTION你有nn个球,需要把他们放到mm个盒子里。要求拥有最多球的盒子唯一,问方案数。INPUT一行两个数n,mn,m.(n,m≤500n,m≤500)原创 2017-01-21 18:55:58 · 270 阅读 · 0 评论 -
hiho1284机会渺茫-map
机会渺茫Time Limit:5000MS Memory Limit:262144KB 64bit IO Format:%lld & %lluSubmit StatusDescription小Hi最近在追求一名学数学的女生小Z。小Z其实是想拒绝他的,但是找不到好的说辞,于是提出了这样的要求:对于给定的两个正整数N和M,小Hi随机选取一个N原创 2016-11-01 16:42:57 · 530 阅读 · 0 评论 -
**【杭电1568】Fibonacci
FibonacciTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列 (f[0]=0,f[1原创 2016-11-12 17:21:33 · 359 阅读 · 0 评论 -
分奇偶输出字符串
HulkTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 705AAppoint description: System Crawler (Aug 12, 2016 10:00:33 PM)原创 2016-08-16 15:12:25 · 439 阅读 · 0 评论 -
【杭电5480】Conturbatio象棋--车
ConturbatioTime Limit:3000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 5480DescriptionThere are many rook on a chessboard, a rook can a原创 2016-08-18 18:11:05 · 436 阅读 · 0 评论 -
Mishka and trip 道路权值和
Mishka and tripTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 703BAppoint description: System Crawler (Aug 15, 2016 11:19原创 2016-08-18 11:50:34 · 356 阅读 · 0 评论 -
**质因子个数
C - CTime Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 546DDescriptionTwo soldiers are playing a game. At the begin原创 2016-08-14 18:43:07 · 1206 阅读 · 0 评论 -
Bungee Jumping(基础物理)
J - JTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1155DescriptionOnce again, James Bond is fleeing from some evil peop原创 2016-08-13 17:20:59 · 591 阅读 · 0 评论 -
能组成几个平行四边形--组合数
H - HTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1058 uDebugDescriptionThere are n distinct points in the plane, given转载 2016-08-13 20:45:53 · 2494 阅读 · 0 评论 -
概率
I - ITime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1104 uDebugDescriptionSometimes some mathematical results are hard to原创 2016-08-15 17:02:17 · 214 阅读 · 0 评论 -
【杭电4907】Task schedule
Task scheduleTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。 有m个询问,每原创 2016-07-27 20:54:27 · 247 阅读 · 0 评论 -
未整理
/*#include//二进制数中1的个数 main(){ int N,M,t,s;scanf("%d",&M);while(M--){scanf("%d",&N);s=0;while(N!=0){t=N%2;N=N/2;if(t==1)s++;}printf("%d\n",s);}return 0;}*//*#inc原创 2016-07-27 09:33:42 · 185 阅读 · 0 评论 -
【poj1852】Ants
AntsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 14948 Accepted: 6498DescriptionAn army of ants walk on a horizontal pole of length l cm, each with a原创 2016-08-18 21:23:55 · 228 阅读 · 0 评论 -
1899最大和难题
1899: 985的最大和难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 329 Solved: 41SubmitStatusWeb BoardDescription985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。Input第一行输入一个整数原创 2016-08-19 17:45:02 · 249 阅读 · 0 评论 -
【南阳1291】河南多校训练
不是匹配时间限制:1000 ms | 内存限制:65535 KB难度:2描述 有N个人,N个活动, 每个人只会对2个或者3个活动感兴趣, 每个活动也只有两个人或者两个活动对它兴趣,每个人参加一个 感兴趣的活动需要一天 ,且当天该活动被参加时,其他的人不能参加 如果每个人都参加完自己有兴趣的活动,应当怎样安排使得所用总天数时间最短2原创 2016-08-22 10:42:09 · 320 阅读 · 0 评论 -
【杭电4506】小明系列故事――师兄帮帮忙-快速幂
小明系列故事――师兄帮帮忙Crawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionInputOutput原创 2016-10-29 17:46:03 · 293 阅读 · 0 评论 -
【杭电2136】Largest prime factor
Largest prime factorCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionInput原创 2016-10-18 22:13:53 · 438 阅读 · 0 评论 -
**1051 - My-graph-同构图
1051 - My-graphTime Limit:1s Memory Limit:64MByteSubmissions:351Solved:171DESCRIPTIONIn graph theory, the inverse of a graph GG is a graph HH on the same vertices such that t原创 2016-11-05 18:20:41 · 256 阅读 · 0 评论 -
**View Angle
View AngleCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatus Practice CodeForces 257C uDebug原创 2016-10-23 20:37:07 · 451 阅读 · 0 评论 -
An easy problem
An easy problemTime Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionWhen Teddy was a child , he was always thinking about some simp原创 2016-10-10 22:40:19 · 437 阅读 · 0 评论