提出 #47013324
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
#define Long long long
#define all(x) (x).begin(), (x).end()
#define double long double
const int Nn = 1e6 + 2;
const Long MOD = 1e9 + 7;
bool not326(int n) {
int a = n % 10;
n /= 10;
int b = n % 10;
n /= 10;
int c = n % 10;
return a != b * c;
}
void solve(int test_case) {
int n; cin >> n;
while (not326(n)) ++n;
cout << n;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t = 1; // cin >> t;
for (int i = 1; i <= t; ++i) solve(t);
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - 326-like Numbers |
| ユーザ | inzamam_inz |
| 言語 | C++ 20 (gcc 12.2) |
| 得点 | 200 |
| コード長 | 632 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3560 KiB |
コンパイルエラー
Main.cpp: In function ‘void solve(int)’:
Main.cpp:21:16: warning: unused parameter ‘test_case’ [-Wunused-parameter]
21 | void solve(int test_case) {
| ~~~~^~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| random_01.txt | AC | 1 ms | 3416 KiB |
| random_02.txt | AC | 1 ms | 3560 KiB |
| random_03.txt | AC | 1 ms | 3400 KiB |
| random_04.txt | AC | 1 ms | 3556 KiB |
| random_05.txt | AC | 1 ms | 3492 KiB |
| random_06.txt | AC | 1 ms | 3492 KiB |
| random_07.txt | AC | 1 ms | 3492 KiB |
| random_08.txt | AC | 1 ms | 3420 KiB |
| random_09.txt | AC | 1 ms | 3480 KiB |
| random_10.txt | AC | 1 ms | 3428 KiB |
| random_11.txt | AC | 1 ms | 3488 KiB |
| random_12.txt | AC | 1 ms | 3492 KiB |
| sample_01.txt | AC | 1 ms | 3416 KiB |
| sample_02.txt | AC | 1 ms | 3396 KiB |
| sample_03.txt | AC | 1 ms | 3396 KiB |