Submission #73052203
Source Code Expand
#include <algorithm>
//#include <atcoder/all>
//#include <array>
//#include <bitset>
//#include <cmath>
//#include <deque>
#include <iostream>
#include <map>
//#include <numeric>
#include <queue>
//#include <ranges>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define pb push_back
#define fr first
#define sc second
#define sor(v) sort(v.begin(), v.end())
#define rev(v) reverse(v.begin(), v.end())
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using pint = pair<int,int>;
//using pll = pair<ll,ll>;
//using pqdec = priority_queue<int,vector<int>,greater<int>>;
//using pqdecl = priority_queue<ll,vector<ll>,greater<ll>>;
template <typename T>
using graph = vector<vector<T>>;
const ll LLMAX = 9223372*1e10;
const int IMAX = 214*1e7;
/*--------考察--------------------
----------CODING----------------*/
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n; cin >> n;
int x = n % 10;
int y = x + x*10 + x*100;
cout << ((n == y) ? "Yes\n" : "No\n");
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Repdigit |
| User | scotch_at |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 1117 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3748 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_sample_1.txt | AC | 1 ms | 3600 KiB |
| 0_sample_2.txt | AC | 1 ms | 3496 KiB |
| 0_sample_3.txt | AC | 1 ms | 3592 KiB |
| 1_1.txt | AC | 1 ms | 3572 KiB |
| 2_1.txt | AC | 1 ms | 3604 KiB |
| 2_2.txt | AC | 1 ms | 3612 KiB |
| 2_3.txt | AC | 1 ms | 3748 KiB |
| 2_4.txt | AC | 1 ms | 3532 KiB |
| 3_1.txt | AC | 1 ms | 3748 KiB |
| 3_2.txt | AC | 1 ms | 3496 KiB |