Submission #73046356
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define fileio(x,y) freopen(x,"r",stdin),freopen(y,"w",stdout);
#define tup tuple<int,int,int>
#define fir(x) (get<0>(x))
#define sec(x) (get<1>(x))
#define thr(x) (get<2>(x))
#define pii pair<int,int>
#define bit(x) bitset<x>
#define pb emplace_back
#define i12 __int128_t
#define mt make_tuple
#define mp make_pair
const int maxn=2e5+10;
const int mod=1e9+7;
int n;
void work()
{
/* Code */
cin>>n;
cout<<(n/100==((n/10)%10)&&n/100==n%10? "Yes":"No")<<'\n';
return;
}
signed main()
{
// fileio(".in",".out");
ios::sync_with_stdio(false);
cin.tie(0);
int t,stTime=clock();
t=1;
while(t--) work();
// cerr<<"Time : "<<(double)(clock()-stTime)/CLOCKS_PER_SEC<<'\n';
return 0;
} // Cellinia Texas.
Submission Info
| Submission Time | |
|---|---|
| Task | A - Repdigit |
| User | NINLER |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 870 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3584 KiB |
Compile Error
./Main.cpp: In function 'int main()':
./Main.cpp:37:11: warning: unused variable 'stTime' [-Wunused-variable]
37 | int t,stTime=clock();
| ^~~~~~
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 | 3384 KiB |
| 0_sample_2.txt | AC | 1 ms | 3528 KiB |
| 0_sample_3.txt | AC | 1 ms | 3584 KiB |
| 1_1.txt | AC | 1 ms | 3560 KiB |
| 2_1.txt | AC | 1 ms | 3484 KiB |
| 2_2.txt | AC | 1 ms | 3564 KiB |
| 2_3.txt | AC | 1 ms | 3492 KiB |
| 2_4.txt | AC | 1 ms | 3548 KiB |
| 3_1.txt | AC | 1 ms | 3472 KiB |
| 3_2.txt | AC | 1 ms | 3528 KiB |