⑤ 进制转换
无
贝贝今天AC了吗
这个作者很懒,什么都没留下…
展开
-
PAT_A1058 | A+B in Hogwarts
1058 A+B in Hogwarts (20point(s))If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a G...原创 2020-02-03 14:37:02 · 311 阅读 · 0 评论 -
PAT_A1027 | Colors in Mars
1027 Colors in Mars (20point(s))People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 d...原创 2020-02-03 14:20:08 · 312 阅读 · 0 评论 -
PAT_A1019 | General Palindromic Number
1019 General Palindromic Number (20point(s))A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. A...原创 2020-02-02 19:22:56 · 380 阅读 · 0 评论 -
PAT_B1037 | 在霍格沃茨找零钱
1037 在霍格沃茨找零钱 (20point(s))如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱 P 和他实付的钱 A,你的任务是写一个程序来计算他应该被找的零钱。输入格式:输入在 1 行中分别给出 P 和 A,格式...原创 2020-02-02 18:54:41 · 473 阅读 · 0 评论 -
PAT_A1022 | D进制的A+B
1022 D进制的A+B (20point(s))输入两个非负 10 进制整数 A 和 B (≤230−1),输出 A+B 的 D (1<D≤10)进制数。输入格式:输入在一行中依次给出 3 个整数 A、B 和 D。输出格式:输出 A+B 的 D 进制数。输入样例:123 456 8输出样例:1103关于进制转换可以看看这...原创 2020-02-02 17:16:14 · 309 阅读 · 0 评论