11401 | 2024-09-10 11:19:50 | Ghost | Szorzás gyakorlás | cpp17 | Wrong answer 25/100 | 3ms | 616 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;
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 500 KiB | ||||
2 | Wrong answer | 3ms | 380 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Wrong answer | 2ms | 360 KiB | ||||
subtask3 | 25/25 | ||||||
4 | Accepted | 2ms | 360 KiB | ||||
5 | Accepted | 2ms | 396 KiB | ||||
6 | Accepted | 3ms | 532 KiB | ||||
7 | Accepted | 3ms | 360 KiB | ||||
8 | Accepted | 2ms | 232 KiB | ||||
9 | Accepted | 3ms | 296 KiB | ||||
10 | Accepted | 2ms | 232 KiB | ||||
11 | Accepted | 2ms | 504 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 256 KiB | ||||
13 | Wrong answer | 3ms | 504 KiB | ||||
subtask5 | 0/40 | ||||||
14 | Wrong answer | 2ms | 384 KiB | ||||
15 | Wrong answer | 3ms | 368 KiB | ||||
16 | Wrong answer | 2ms | 616 KiB | ||||
17 | Wrong answer | 3ms | 488 KiB | ||||
18 | Wrong answer | 3ms | 360 KiB | ||||
19 | Wrong answer | 3ms | 360 KiB | ||||
20 | Wrong answer | 2ms | 232 KiB | ||||
21 | Wrong answer | 3ms | 384 KiB | ||||
22 | Wrong answer | 2ms | 360 KiB | ||||
23 | Wrong answer | 2ms | 256 KiB |