Submission #854941


Source Code Expand

Copy
#include<iostream>
#include<string>
using namespace std;

int ss[128];

int main(){
  string str;
  cin>>str;
  for(int i=0;i<str.size();i++){
    ss[str[i]]++;
  }
  int check = true;
  for(int i='a';i<='z';i++){
    if(ss[i] % 2) check = false;
  }
  cout<<(check ? "Yes" : "No")<<endl;
  
  return 0;
}

Submission Info

Submission Time
Task B - Beautiful Strings
User commy
Language C++14 (GCC 5.4.1)
Score 200
Code Size 326 Byte
Status
Exec Time 4 ms
Memory 256 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_01.txt, example_02.txt
All 200 / 200 example_01.txt, example_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt
Case Name Status Exec Time Memory
example_01.txt 4 ms 256 KB
example_02.txt 4 ms 256 KB
subtask1_01.txt 4 ms 256 KB
subtask1_02.txt 4 ms 256 KB
subtask1_03.txt 4 ms 256 KB
subtask1_04.txt 4 ms 256 KB
subtask1_05.txt 4 ms 256 KB
subtask1_06.txt 4 ms 256 KB
subtask1_07.txt 4 ms 256 KB
subtask1_08.txt 4 ms 256 KB
subtask1_09.txt 4 ms 256 KB
subtask1_10.txt 4 ms 256 KB