算法
洛谷,ZOJ等平台练习题
WINNER_QIUQIU
这个作者很懒,什么都没留下…
展开
-
梅贾的窃魂卷(吉首大学新星杯 C题)
梅贾的窃魂卷题目描述:Scout 在开局 7 分钟就买了一本梅贾的窃魂卷,俗称“杀人书”,杀人书(一共 25 层 被动)的功效是击杀一名敌方英雄就增加 5 层被动,获得一次助攻会增加 2 层被动, 而被击杀一次会掉 10 层被动,掉到 0 层不会再掉,scout 杀人书初始为 0 层。现在 已知在游戏结束时 scout 的杀人书为 25 层,给出 scout 的击杀数 k,死亡数 d,以 及助攻数 a,请问这三种字母共有多少种出现顺序能让 scout 最后的杀人书为 25 层, 超过 25 层也为 25原创 2021-12-15 16:22:06 · 1142 阅读 · 0 评论 -
ZOJ A+B problem C++实现
Calculate a + bInputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.OutputFor each pair of input integers a and b you should output the sum of a and b in one line,and with one line of原创 2021-11-11 11:00:43 · 904 阅读 · 0 评论