Rightmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 43847 Accepted Submission(s): 16487 Problem Description Given a positive integer N, you should output the most right digit of…
There are n numbers 3^0, 3^1, . . . , 3^n-1. Each time you can choose a subset of them (may be empty), and then add them up. Count how many numbers can be represented in this way. InputThe first line of the input contains an integer T , denoting the…
CRB and Candies Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 722 Accepted Submission(s): 361 Problem Description CRB has N different candies. He is going to eat K candies.He wonders how ma…