Submission #1909325


Source Code Expand

Copy
#include <map>
#include <iostream>
using namespace std;
int main(){
  string w;
  cin >> w;
  map<char,int> m;
  for(int i = 0; i < w.length(); ++i){
    ++m[w[i]];
  }
  for(auto itr = m.begin(); itr != m.end(); ++itr){
    if(itr->second%2){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Submission Info

Submission Time
Task B - 美しい文字列 / Beautiful Strings
User TAB
Language C++14 (GCC 5.4.1)
Score 200
Code Size 356 Byte
Status
Exec Time 1 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 1 ms 256 KB
example_02.txt 1 ms 256 KB
subtask1_01.txt 1 ms 256 KB
subtask1_02.txt 1 ms 256 KB
subtask1_03.txt 1 ms 256 KB
subtask1_04.txt 1 ms 256 KB
subtask1_05.txt 1 ms 256 KB
subtask1_06.txt 1 ms 256 KB
subtask1_07.txt 1 ms 256 KB
subtask1_08.txt 1 ms 256 KB
subtask1_09.txt 1 ms 256 KB
subtask1_10.txt 1 ms 256 KB