提出 #73069888
ソースコード 拡げる
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n;
cin >> n;
int a = n%10;
int b = n/10%10;
int c=n/100%10;
if(a == b && b == c)
cout << "Yes";
else
cout << "No";
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Repdigit |
| ユーザ | JoyceLele |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 237 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3636 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 | 3380 KiB |
| 0_sample_2.txt | AC | 1 ms | 3504 KiB |
| 0_sample_3.txt | AC | 1 ms | 3348 KiB |
| 1_1.txt | AC | 1 ms | 3636 KiB |
| 2_1.txt | AC | 1 ms | 3504 KiB |
| 2_2.txt | AC | 1 ms | 3492 KiB |
| 2_3.txt | AC | 1 ms | 3420 KiB |
| 2_4.txt | AC | 1 ms | 3492 KiB |
| 3_1.txt | AC | 1 ms | 3420 KiB |
| 3_2.txt | AC | 1 ms | 3500 KiB |