Submission #47111753
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int n;
bool check(int x) {
int a = x / 100;
int b = x / 10 % 10;
int c = x % 10;
return a * b == c;
}
int main() {
cin >> n;
for (int i = n; i <= 100000000; i++) {
if (check(i)) {
cout << i;
return 0;
}
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 326-like Numbers |
| User | yhx0322 |
| Language | C++ 20 (gcc 12.2) |
| Score | 200 |
| Code Size | 362 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3684 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 1 ms | 3504 KiB |
| random_02.txt | AC | 1 ms | 3452 KiB |
| random_03.txt | AC | 1 ms | 3684 KiB |
| random_04.txt | AC | 1 ms | 3540 KiB |
| random_05.txt | AC | 1 ms | 3552 KiB |
| random_06.txt | AC | 1 ms | 3452 KiB |
| random_07.txt | AC | 1 ms | 3456 KiB |
| random_08.txt | AC | 1 ms | 3456 KiB |
| random_09.txt | AC | 1 ms | 3488 KiB |
| random_10.txt | AC | 1 ms | 3608 KiB |
| random_11.txt | AC | 1 ms | 3604 KiB |
| random_12.txt | AC | 1 ms | 3472 KiB |
| sample_01.txt | AC | 1 ms | 3512 KiB |
| sample_02.txt | AC | 1 ms | 3496 KiB |
| sample_03.txt | AC | 1 ms | 3456 KiB |