题上说的A 和B 的长度不超过15,因为A和B 是十六进制数,如果长度不考虑正负号的话,一个数字表示4位二进制数,所以A 、B的位数是60位,所以定义A、B时,要定义为64位。当然如果考虑正负
转载
2019-08-09 17:09:00
78阅读
2评论
Problem Description There must be many A + B problems in our HDOJ , now a new one is coming. Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexadecimal
原创
2022-05-14 11:40:57
81阅读
A + B AgainTime Limit: 1000/1000 MS (Java/Others)Memoryms in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calculate the
原创
2022-03-18 15:00:44
53阅读
Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asd
转载
2017-11-06 23:33:00
37阅读
2评论
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2057 Problem Description There must be many A + B proble
原创
2022-11-09 14:40:22
67阅读
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1867Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionGenerally speaking, there are a lot of problem...
原创
2022-02-03 15:07:16
30阅读
链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2057/*public long nextLong(int radix)将输入的下一个标记扫描为long 。 * 如果下一个令牌不能转换为有效的长值,则此方法将抛出InputMismatchException , * 如下所述。 如果翻译成功,扫描仪将超过匹配的输入。 *
原创
2023-02-20 10:45:15
24阅读
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1867Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionGenerally speaking, there are a lot of problem...
原创
2021-07-14 10:42:47
47阅读
不懂英文简直要是要死要死要死啊 首先是谁是谁的字串问题,这个取决于重构的字符串的长度最小 其次是当不管谁是谁的字串,重构字符串的长度都相等时。去字典序小的重构字符串 英语不好是硬伤啊 #include<iostream> #include<string> #include<algorithm> #d
转载
2017-07-20 13:38:00
90阅读
2评论
问题链接:HDU2057 A + B Again。入门训练题,用C语言编写程序。投机取巧,按照许多人的做法来做,程序是AC了。即便如此,也是一脸困惑,不知道解了这种题意义何在?因为定义变量的类型是__int64,十分的不满意。还是希望用long long定义变量,但是...
转载
2016-07-11 22:56:00
43阅读
2评论
Problem DescriptionThere must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calcula...
转载
2017-09-27 21:06:00
68阅读
A + B for you againTime Limit : 5000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 30Accepted Submission(s) : 9Problem DescriptionGenerally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two string
转载
2013-04-19 17:40:00
49阅读
2评论
思路:模拟一个十六进制的加法,直接用scanf处理一下就好了#include#includ
原创
2023-06-09 18:34:15
35阅读
A + B for you againTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768
原创
2023-04-23 15:30:37
24阅读
A + B for you againTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/ONow you encounter another such problem. If you get tw
原创
2022-03-18 14:35:45
42阅读
注意kmp函数中i==lens时才能返回j,否则返回0,因为a的后缀要严格等于b的前缀(
原创
2022-08-17 15:35:30
36阅读