提出 #46996898
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
using vll = vector<vl>;
using Pll = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define Rep(i, j, n) for (ll i = (ll)(j); i <= (ll)(n); ++i)
#define all(v) v.begin(), v.end()
#define sz(x) ((int)x.size())
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define F first
#define S second
const int MOD = 1e9 + 7;
const int mod = 998244353;
const ll INF = 2e15;
template <class T>
void print(const T& t) {
cout << t << endl;
}
template <class T>
inline bool chmax(T& a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
/*
ll ti=clock();
cout<<("Execution Time: %.4lf sec", 1.0 * (clock() - ti) /
CLOCKS_PER_SEC)<<endl;
*/
int main(){
ll n;
cin>>n;
while(1){
string s=to_string(n);
if((s[0]-'0')*(s[1]-'0')==s[2]-'0'){
print(n);
return 0;
}
n++;
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - 326-like Numbers |
| ユーザ | replica |
| 言語 | C++ 20 (gcc 12.2) |
| 得点 | 200 |
| コード長 | 1199 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3532 KiB |
ジャッジ結果
| セット名 | 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 | 3456 KiB |
| random_02.txt | AC | 1 ms | 3492 KiB |
| random_03.txt | AC | 1 ms | 3492 KiB |
| random_04.txt | AC | 1 ms | 3488 KiB |
| random_05.txt | AC | 1 ms | 3468 KiB |
| random_06.txt | AC | 1 ms | 3480 KiB |
| random_07.txt | AC | 1 ms | 3468 KiB |
| random_08.txt | AC | 1 ms | 3436 KiB |
| random_09.txt | AC | 1 ms | 3532 KiB |
| random_10.txt | AC | 1 ms | 3480 KiB |
| random_11.txt | AC | 1 ms | 3488 KiB |
| random_12.txt | AC | 1 ms | 3452 KiB |
| sample_01.txt | AC | 1 ms | 3488 KiB |
| sample_02.txt | AC | 1 ms | 3488 KiB |
| sample_03.txt | AC | 1 ms | 3488 KiB |