微信开发中 ACCESS TOKEN 过期失效的解决方案详解
824
2022-11-08
HDU 2106 decimal system(进制转换+模拟)
decimal system
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4367 Accepted Submission(s): 2476
Problem Description
As we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the value that 3 plus 9, we just import 3 and 9.after calculation of computer, we will get the result of 12. But after learning <
Input
There will be several cases. The first line of each case contains one integers N, and N means there will be N numbers to import, then there will be N numbers at the next N lines, each line contains a number with such form : X1….Xn.(Y), and 0<=Xi Output There is only one line output case for each input case, which is the sum of all the number. The sum must be expressed using the decimal system. Sample Input 3
1(2)
2(3)
3(4)
4
11(10)
11(2)
11(3)
11(4) Sample Output 6
23 Source 题解:进制转换+模拟 AC代码: #include#include
发表评论
暂时没有评论,来抢沙发吧~