Данная задача: Написать функцию:
Код: Выделить всё
class Solution { public int solution(int A, int B, int K); }
Код: Выделить всё
{ i : A ≤ i ≤ B, i mod K = 0 }
Код: Выделить всё
class Solution {
public int solution(int A, int B, int K) {
int start=0;
if (BB )
return 0;
else if (K
Подробнее здесь: [url]https://stackoverflow.com/questions/25661519/find-the-number-of-multiples-for-a-number-in-range[/url]
Мобильная версия