114002024-09-10 11:16:46GhostSzorzás gyakorláscpp17Wrong answer 25/1003ms672 KiB
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int n, k, i;
    cin >> n;
    for (i = 0; i < n; i++) {
        cin >> k;
        int j = 0, x = 0;
        vector<bool> digits(10, false);
        while (x != 10) {
            j++;
            int temp = k * j;
            while (temp > 0) {
                int cd = temp % 10;
                if (!digits[cd]) {
                    digits[cd] = true;
                    x++;
                }
                temp /= 10;
            }
        }
        cout << j;
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms360 KiB
2Wrong answer3ms360 KiB
subtask20/15
3Wrong answer2ms360 KiB
subtask325/25
4Accepted2ms280 KiB
5Accepted3ms360 KiB
6Accepted2ms240 KiB
7Accepted3ms672 KiB
8Accepted3ms504 KiB
9Accepted3ms360 KiB
10Accepted3ms500 KiB
11Accepted3ms360 KiB
subtask40/20
12Wrong answer3ms504 KiB
13Wrong answer3ms504 KiB
subtask50/40
14Wrong answer3ms460 KiB
15Wrong answer3ms360 KiB
16Wrong answer3ms620 KiB
17Wrong answer3ms404 KiB
18Wrong answer3ms360 KiB
19Wrong answer3ms384 KiB
20Wrong answer3ms488 KiB
21Wrong answer3ms256 KiB
22Wrong answer3ms500 KiB
23Wrong answer3ms512 KiB