- 博客(18)
- 收藏
- 关注
原创 zcmu 2145: 黑色星期五
2145: 黑色星期五Time Limit:1 SecMemory Limit:128 MBSubmit:68Solved:38[Submit][Status][Web Board]Description有些西方人比较迷信,如果某个月的13号正好是星期五,他们就会觉得不太吉利,用古人的说法,就是“诸事不宜”。请你编写一个程序,统计出在某个特定的年份中,出现了多少次既是13号又是星期五的情形,以帮助你的迷信朋友解决难题。说明:(1)一年有365天,闰年有366天,所谓闰年,...
2022-05-13 10:00:18
176
原创 zcmu 1308: Permutation
1308: PermutationTime Limit:1 SecMemory Limit:128 MBSpecial JudgeSubmit:20Solved:12[Submit][Status][Web Board]DescriptionA permutation p is an ordered group of numbers p1, p2, ..., pn, consisting of n distinct positive integers, ea...
2022-04-12 20:59:24
374
原创 zcmu 5163: 教科书般的亵渎
5163: 教科书般的亵渎Time Limit:1 SecMemory Limit:128 MBSubmit:80Solved:19[Submit][Status][Web Board]Description环境里有n个怪物,他们的生命值用一个正整数表示。现在,你可以使用两种魔法,对怪物进行攻击。当怪物的生命值小于等于0时,他便被消灭了。 魔法箭,对摸个生物造成k点伤害,对一个生物最多使用一次,但没有使用次数限制。 亵渎,对所有生物造成一点伤害,...
2022-04-07 21:33:57
402
2
原创 zcmu 1910: C-WTF_number
1910: C-WTF_numberTime Limit:1 SecMemory Limit:128 MBSubmit:50Solved:19[Submit][Status][Web Board]Descriptionwtf number是一个神奇的数,相邻两个数字之差至少为3的正整数称为wtf number。 cc想知道,在l和r之间(包括l和r),总共有多少个wtf number?Input两个整数l r (1 <=l <=r <=INT_M...
2022-04-06 22:11:09
667
原创 zcmu 1694: USB Flash Drives
1694: USB Flash DrivesTime Limit:1 SecMemory Limit:128 MBSubmit:350Solved:175[Submit][Status][Web Board]DescriptionSean is trying to save a large file to a USB flash drive. He hasnUSB flash drives with capacities equal toa1, a2, ..., an...
2022-04-05 23:16:55
686
原创 zcmu 1633: 酷酷的单词
1633: 酷酷的单词Time Limit:1 SecMemory Limit:128 MBSubmit:300Solved:161[Submit][Status][Web Board]Description输入一些仅由小写字母组成的单词。你的任务是统计有多少个单词是“酷”的,即每种字母出现的次数都不同。比如 ada 是酷的,因为 a 出现 2 次,d 出现 1 次,而 1 和 2 不同。再比如,banana 也是酷的,因为 a 出现 3 次,n 出现 2 次,b 出...
2022-04-04 21:57:30
916
1
原创 zcmu 1998 Execution of Paladin
1998: Execution of PaladinTime Limit:2 SecMemory Limit:64 MBSubmit:31Solved:24[Submit][Status][Web Board]DescriptionMurloc is a powerful race in Hearthstone. In the set League of Explorers, a new Paladin ability card called Anyfin Can Happ...
2022-04-03 22:58:01
1238
4
原创 zcmu 2194: African Crossword
2194: AfricanCrosswordTime Limit:2 SecMemory Limit:256 MBSubmit:43Solved:36[Submit][Status][Web Board]Descriptiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn Af...
2022-04-02 23:34:12
760
原创 zcmu 1422 : Next Round
1422: Next RoundTime Limit:1 SecMemory Limit:128 MBSubmit:292Solved:144[Submit][Status][Web Board]Description"Contestant who earns a score equal to or greater than thek-th place finisher's score will advance to the next round, as long as ...
2022-04-01 23:18:06
849
原创 zcmu 2001: Return of the Nim
2001: Return of the NimTime Limit:1 SecMemory Limit:128 MBSubmit:20Solved:15[Submit][Status][Web Board]DescriptionSherlock and Watson are playing the following modified version of Nim game:There are n piles of stones denoted as pile...
2022-03-31 20:04:19
651
原创 zcmu 1790: Problem A - Y2K Accounting Bug
1790: Problem A - Y2K Accounting BugTime Limit:1 SecMemory Limit:128 MBSubmit:51Solved:28[Submit][Status][Web Board]DescriptionProblem A - Y2K Accounting BugAccounting for Computer Machinists (ACM) has sufferred from the Y2K bug and ...
2022-03-31 19:16:16
981
原创 zcmu 1999 Reversed Words
1999: Reversed WordsTime Limit:2 SecMemory Limit:128 MBSubmit:94Solved:48[Submit][Status][Web Board]DescriptionSome aliens are learning English. They have a very strange way in writing that they revered every word in the sentence but keep ...
2022-03-30 18:35:33
496
原创 zcmu 1799 Problem C: Primary Arithmetic
1799: Problem C: Primary ArithmeticTime Limit:1 SecMemory Limit:128 MBSubmit:171Solved:55[Submit][Status][Web Board]DescriptionProblem C: Primary ArithmeticChildren are taught to add multi-digit numbers from right-to-left one digit at ...
2022-03-29 20:57:20
561
1
原创 zcmu 1789 A multiplication game
1789: Problem E: A multiplication gameTime Limit:1 SecMemory Limit:128 MBSubmit:68Solved:41[Submit][Status][Web Board]DescriptionProblem E: A multiplication gameStan and Ollie play the game of multiplication by multiplying an integer...
2022-03-29 19:53:38
1717
原创 [NOIP2015 提高组] 神奇的幻方
题目描述幻方是一种很神奇的N*NN∗N矩阵:它由数字1,2,3,\cdots \cdots ,N \times N1,2,3,⋯⋯,N×N构成,且每行、每列及两条对角线上的数字之和都相同。当NN为奇数时,我们可以通过下方法构建一个幻方:首先将11写在第一行的中间。之后,按如下方式从小到大依次填写每个数K (K=2,3,\cdots,N \times N)K(K=2,3,⋯,N×N):若(K-1)(K−1)在第一行但不在最后一列,则将KK填在最后一行,(K-...
2022-03-28 10:58:37
733
原创 zcmu 1466 lucky boy
1466: Lucky BoyTime Limit:1 SecMemory Limit:128 MBSubmit:40Solved:17[Submit][Status][Web Board]DescriptionRecently, Lur have a good luck. He is also the cleverest boy in his school as he create the most popular computer game – Lucky Boy. T...
2022-03-27 21:38:45
1295
原创 ZCMU——5022约瑟夫环
5022: 约瑟夫Time Limit:1 SecMemory Limit:128 MBSubmit:212Solved:105[Submit][Status][Web Board]Description在罗马人占领乔塔帕特后,39 个犹太人与Josephus及他的朋友躲到一个洞中,39个犹太人决定宁愿死也不要被敌人抓到,于是决定了一个自杀方式,41个人排成一个圆圈,由第1个人开始报数,每报数到第3人该人就必须自杀,然后再由下一个重新报数,直到所有人都自杀身亡为止。然而J...
2022-03-27 10:17:46
1547
原创 蒟蒻的第一篇博客——博弈
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言 一、博弈论基本要素 二、博弈论类型 四大博弈 总结前言太无聊了搞个博弈专题vanvan~博弈论(Game Theory),博弈论是指研究多个个体或团队之间在特定条件制约下的对局中利用相关方的策略,而实施对应策略的学科。有时也称为对策论,或者赛局理论,是研究具有斗争或竞争性质现象的理论和方法。一、博弈论基本要素(1)局中人(players):在一场竞赛或博弈中,每一个有决策.
2022-03-26 21:09:23
3514
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人