Submission #59835501
Source Code Expand
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; int a[N]; int main(){ int n,t; cin>>n; while(n--){ t=n%10; n=n/10; a[t]++; if(t==a[t]){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 123233 |
User | WHL02050 |
Language | C++ 17 (gcc 12.2) |
Score | 0 |
Code Size | 243 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 3676 KiB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
All | hand_01.txt, hand_02.txt, hand_03.txt, sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
hand_01.txt | WA | 1 ms | 3472 KiB |
hand_02.txt | WA | 1 ms | 3484 KiB |
hand_03.txt | WA | 1 ms | 3608 KiB |
sample_01.txt | AC | 1 ms | 3532 KiB |
sample_02.txt | WA | 1 ms | 3452 KiB |
sample_03.txt | AC | 1 ms | 3448 KiB |
sample_04.txt | AC | 1 ms | 3512 KiB |
test_01.txt | AC | 1 ms | 3532 KiB |
test_02.txt | AC | 1 ms | 3608 KiB |
test_03.txt | AC | 1 ms | 3476 KiB |
test_04.txt | AC | 1 ms | 3528 KiB |
test_05.txt | AC | 1 ms | 3532 KiB |
test_06.txt | AC | 1 ms | 3472 KiB |
test_07.txt | WA | 1 ms | 3528 KiB |
test_08.txt | AC | 1 ms | 3476 KiB |
test_09.txt | AC | 1 ms | 3532 KiB |
test_10.txt | AC | 1 ms | 3528 KiB |
test_11.txt | AC | 1 ms | 3516 KiB |
test_12.txt | AC | 1 ms | 3456 KiB |
test_13.txt | AC | 1 ms | 3456 KiB |
test_14.txt | AC | 1 ms | 3448 KiB |
test_15.txt | AC | 1 ms | 3608 KiB |
test_16.txt | AC | 1 ms | 3536 KiB |
test_17.txt | AC | 1 ms | 3404 KiB |
test_18.txt | AC | 1 ms | 3456 KiB |
test_19.txt | WA | 1 ms | 3452 KiB |
test_20.txt | WA | 1 ms | 3604 KiB |
test_21.txt | WA | 1 ms | 3484 KiB |
test_22.txt | WA | 1 ms | 3676 KiB |
test_23.txt | WA | 1 ms | 3412 KiB |
test_24.txt | WA | 1 ms | 3532 KiB |
test_25.txt | WA | 1 ms | 3468 KiB |
test_26.txt | WA | 1 ms | 3492 KiB |
test_27.txt | WA | 1 ms | 3452 KiB |
test_28.txt | AC | 1 ms | 3672 KiB |
test_29.txt | WA | 1 ms | 3676 KiB |
test_30.txt | WA | 1 ms | 3448 KiB |
test_31.txt | WA | 1 ms | 3676 KiB |
test_32.txt | WA | 1 ms | 3536 KiB |