提出 #73044358
ソースコード 拡げる
#include <iostream>
#include <vector>
#include <algorithm>
#define fastio cin.tie(0)->sync_with_stdio(0)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define compress(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define sz(x) (int)(x).size()
using namespace std;
typedef long long ll;
int main() {
fastio; int N; cin >> N;
if (N%10 == N/10%10 && N%10 == N/100) cout << "Yes\n";
else cout << "No\n";
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Repdigit |
| ユーザ | Lov34ever |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 480 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3632 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 | 3464 KiB |
| 0_sample_2.txt | AC | 1 ms | 3632 KiB |
| 0_sample_3.txt | AC | 1 ms | 3568 KiB |
| 1_1.txt | AC | 1 ms | 3484 KiB |
| 2_1.txt | AC | 1 ms | 3484 KiB |
| 2_2.txt | AC | 1 ms | 3484 KiB |
| 2_3.txt | AC | 1 ms | 3476 KiB |
| 2_4.txt | AC | 1 ms | 3628 KiB |
| 3_1.txt | AC | 1 ms | 3544 KiB |
| 3_2.txt | AC | 1 ms | 3476 KiB |