| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1338317 | hasnat | Detecting Molecules (IOI16_molecules) | C++20 | 0 ms | 0 KiB |
#include <iostream>
#include <vector>
int main() {
int n, l, u;
std::cin >> n >> l >> u;
std::vector<int> a(n);
for (int i = 0; i < n; i++) {
std::cin >> a[i];
}
for (int i = l; i <= u; i++) {
if (i % a[0] == 0) {
int ind = i / a[0];
for (int j = 0; j < ind; j++) {
std::cout << j << " ";
}
break;
}
}
return 0;
}