摘要:
1058 A+B in Hogwarts (20 分) If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it 阅读全文
posted @ 2021-08-03 19:04
shiff
阅读(36)
评论(0)
推荐(0)
摘要:
1019 General Palindromic Number (20 分) A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For e 阅读全文
posted @ 2021-08-03 18:09
shiff
阅读(38)
评论(0)
推荐(0)
摘要:
1027 Colors in Mars (20 分) People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represente 阅读全文
posted @ 2021-08-03 18:08
shiff
阅读(37)
评论(0)
推荐(0)
摘要:
1037 在霍格沃茨找零钱 (20 分) 如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱 P 和他实付的钱 A,你的任务是写一个程序 阅读全文
posted @ 2021-08-03 16:22
shiff
阅读(45)
评论(0)
推荐(0)
摘要:
1022 D进制的A+B (20 分) 输入两个非负 10 进制整数 A 和 B (≤230−1),输出 A+B 的 D (1<D≤10)进制数。 输入格式: 输入在一行中依次给出 3 个整数 A、B 和 D。 输出格式: 输出 A+B 的 D 进制数。 输入样例: 123 456 8 输出样例: 阅读全文
posted @ 2021-08-03 15:00
shiff
阅读(36)
评论(0)
推荐(0)