11779 | 2024-11-10 16:38:45 | Mittomen | Szorzás gyakorlás | cpp17 | Wrong answer 0/100 | 1.098s | 568 KiB |
#include <iostream>
#include <string>
#include <cstdint>
#include <bitset>
using namespace std;
void get_solution(uint32_t k) {
bitset<10> set;
int i = 1;
while (!set.all()) {
for (char& chr : to_string(k* i)) {
set.set(chr - '0');
}
i++;
}
cout << i - 1 << endl;
}
int main() {
uint8_t n;
cin >> n;
uint32_t k;
for (uint8_t i = 0; i < n; i++) {
cin >> k;
get_solution(k);
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 1ms | 320 KiB | ||||
2 | Wrong answer | 1ms | 508 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Time limit exceeded | 1.098s | 320 KiB | ||||
subtask3 | 0/25 | ||||||
4 | Wrong answer | 2ms | 408 KiB | ||||
5 | Wrong answer | 1ms | 500 KiB | ||||
6 | Wrong answer | 1ms | 320 KiB | ||||
7 | Wrong answer | 1ms | 320 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
9 | Wrong answer | 1ms | 568 KiB | ||||
10 | Wrong answer | 1ms | 320 KiB | ||||
11 | Wrong answer | 1ms | 320 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Time limit exceeded | 1.098s | 320 KiB | ||||
13 | Time limit exceeded | 1.098s | 320 KiB | ||||
subtask5 | 0/40 | ||||||
14 | Time limit exceeded | 1.087s | 500 KiB | ||||
15 | Time limit exceeded | 1.087s | 320 KiB | ||||
16 | Time limit exceeded | 1.087s | 320 KiB | ||||
17 | Time limit exceeded | 1.087s | 320 KiB | ||||
18 | Time limit exceeded | 1.082s | 320 KiB | ||||
19 | Time limit exceeded | 1.082s | 512 KiB | ||||
20 | Time limit exceeded | 1.082s | 320 KiB | ||||
21 | Time limit exceeded | 1.082s | 320 KiB | ||||
22 | Time limit exceeded | 1.07s | 500 KiB | ||||
23 | Time limit exceeded | 1.07s | 320 KiB |