提出 #73058698
ソースコード 拡げる
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull=unsigned long long;
const int INF = 1e9;
const long long INFLL = (long long)1e18;
const double PI = acos(-1);
//cout << fixed << setprecision(15) << ans << '\n';
int main()
{
int n;cin>>n;
int a,b,c;
c=n%10;
b=n%100-c;b/=10;
a=n-10*b-c;a/=100;
if(a==b and b==c)cout<<"Yes\n";
else cout<<"No\n";
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Repdigit |
| ユーザ | maou1 |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 444 Byte |
| 結果 | AC |
| 実行時間 | 2 ms |
| メモリ | 3624 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 0_sample_1.txt, 0_sample_2.txt, 0_sample_3.txt |
| All | 0_sample_1.txt, 0_sample_2.txt, 0_sample_3.txt, 1_1.txt, 2_1.txt, 2_2.txt, 2_3.txt, 2_4.txt, 3_1.txt, 3_2.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 0_sample_1.txt | AC | 1 ms | 3568 KiB |
| 0_sample_2.txt | AC | 1 ms | 3568 KiB |
| 0_sample_3.txt | AC | 1 ms | 3476 KiB |
| 1_1.txt | AC | 1 ms | 3624 KiB |
| 2_1.txt | AC | 1 ms | 3368 KiB |
| 2_2.txt | AC | 1 ms | 3548 KiB |
| 2_3.txt | AC | 2 ms | 3364 KiB |
| 2_4.txt | AC | 1 ms | 3424 KiB |
| 3_1.txt | AC | 1 ms | 3476 KiB |
| 3_2.txt | AC | 1 ms | 3532 KiB |