Problem Description
Loading...
Problem Analysis
The idea of this problem is for example, given the input 3 1 it asks for the minimum count of digits 1 whose number is divisible by 3 e.g. 111 is divisible by 3 so output 3 likewise for 7 3 333333 is divisible by 7 so output 6
Using the congruence theorem the AC code is as follows
cpp
| |
Problem link: 【Light】[1078]Integer Divisibility