![](https://img-blog.csdnimg.cn/20200401231014656.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
ZOJ浙大OJ
ZOJ的题
长生的梦呓
你们好,我叫长生,很高兴认识你们。闻道有先后,术业有专攻。欢迎来和我一起交流讨论。个人博客搜索关键字:长生的梦呓slensoft
展开
-
【蓝桥杯】第九届决赛 - 海盗与金币(Java题解)
题目结果填空(满分29分)标题:海盗与金币12名海盗在一个小岛上发现了大量的金币,后统计一共有将近5万枚。登上小岛是在夜里,天气又不好。由于各种原因,有的海盗偷拿了很多,有的拿了很少。后来为了“均贫富”,头目提出一个很奇怪的方案:每名海盗都把自己拿到的金币放在桌上。然后开始一个游戏。金币最多的海盗要拿出自己的金币来补偿其他人。补偿的额度为正好使被补偿人的金币数目翻番(即变为原来的2...原创 2020-04-05 20:21:45 · 1059 阅读 · 3 评论 -
【ZOJ】3326.An Awful Problem(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827368250In order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when the day of the month was a prime n...原创 2020-04-02 16:51:39 · 301 阅读 · 0 评论 -
【ZOJ】4106.Lucky 7 in the Pocket(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827370501BaoBao loves number 7 but hates number 4, so he refers to an integer is divisible by 7 but not divisible by 4. For exampl...原创 2020-04-01 23:13:47 · 190 阅读 · 0 评论 -
【ZOJ】0001.A + B Problem(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364500Calculate a + b InputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of int...原创 2020-04-01 23:13:11 · 297 阅读 · 0 评论 -
【ZOJ】4105.Abbreviation(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827370500In the Test of English as a Foreign Language (TOEFL), the listening part is very important but also very hard for most stu...原创 2020-04-01 23:12:37 · 255 阅读 · 0 评论 -
【ZOJ】2812.Quicksum(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827366311A checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is ch...原创 2020-04-01 23:12:02 · 845 阅读 · 0 评论 -
【ZOJ】1048.Financial Management(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364547Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. L...原创 2020-04-01 23:11:32 · 271 阅读 · 0 评论 -
【ZOJ】0045.HangOver(Java 题解)
一、题目原题链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364544 How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of hal...原创 2020-04-01 23:11:00 · 225 阅读 · 0 评论