114012024-09-10 11:19:50GhostSzorzás gyakorláscpp17Wrong answer 25/1003ms616 KiB
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int n, i;
    cin >> n;
    vector<int> d(n);
    for (i = 0; i < n; i++) {
        cin >> d[i];
    }

    for (i = 0; i < n; i++) {
        int j = 0, x = 0;
        vector<bool> digits(10, false);
        while (x != 10) {
            j++;
            int temp = d[i] * j;
            while (temp > 0) {
                int cd = temp % 10;
                if (!digits[cd]) {
                    digits[cd] = true;
                    x++;
                }
                temp /= 10;
            }
        }
        cout << j;
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms500 KiB
2Wrong answer3ms380 KiB
subtask20/15
3Wrong answer2ms360 KiB
subtask325/25
4Accepted2ms360 KiB
5Accepted2ms396 KiB
6Accepted3ms532 KiB
7Accepted3ms360 KiB
8Accepted2ms232 KiB
9Accepted3ms296 KiB
10Accepted2ms232 KiB
11Accepted2ms504 KiB
subtask40/20
12Wrong answer3ms256 KiB
13Wrong answer3ms504 KiB
subtask50/40
14Wrong answer2ms384 KiB
15Wrong answer3ms368 KiB
16Wrong answer2ms616 KiB
17Wrong answer3ms488 KiB
18Wrong answer3ms360 KiB
19Wrong answer3ms360 KiB
20Wrong answer2ms232 KiB
21Wrong answer3ms384 KiB
22Wrong answer2ms360 KiB
23Wrong answer2ms256 KiB