Submission #51798977
Source Code Expand
/**
* @the_hyp0cr1t3
* 30.03.2024 17:30
**/
#include <bits/stdc++.h>
int main() {
std::cin.tie(nullptr)->sync_with_stdio(false);
int n, k;
std::cin >> n >> k;
while (n--) {
int x;
std::cin >> x;
if (x % k == 0)
std::cout << x / k << ' ';
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Divisible |
| User | the_hyp0cr1t3 |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 324 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3596 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 1 ms | 3452 KiB |
| 00_sample_02.txt | AC | 1 ms | 3452 KiB |
| 00_sample_03.txt | AC | 1 ms | 3284 KiB |
| 01_test_01.txt | AC | 1 ms | 3448 KiB |
| 01_test_02.txt | AC | 1 ms | 3320 KiB |
| 01_test_03.txt | AC | 1 ms | 3404 KiB |
| 01_test_04.txt | AC | 1 ms | 3456 KiB |
| 01_test_05.txt | AC | 1 ms | 3456 KiB |
| 01_test_06.txt | AC | 1 ms | 3448 KiB |
| 01_test_07.txt | AC | 1 ms | 3596 KiB |
| 01_test_08.txt | AC | 1 ms | 3464 KiB |
| 01_test_09.txt | AC | 1 ms | 3392 KiB |
| 01_test_10.txt | AC | 1 ms | 3516 KiB |
| 01_test_11.txt | AC | 1 ms | 3364 KiB |
| 01_test_12.txt | AC | 1 ms | 3520 KiB |