2651. 计算列车到站时间 - 力扣(LeetCode) 一、Java class Solution {public int findDelayedArrivalTime(int arrivalTime, int delayedTime) {return (arrivalTime+delayedTime)%24;}}
2894. 分类求和并作差 - 力扣(LeetCode) 一、Java class Solution {public int differenceOfSums(int n, int m) {return (1+n)*n/2-n/m*(m+n/m*m)/2;}} 二、C++ class Solution {public:int differenceOfSums(int n, int m)