Submission #8465972


Source Code Expand

Copy
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <algorithm>
#include <set>
#include <map>
#include <bitset>
#include <cmath>
#define vv(a, b, c, d) vector<vector<d> >(a, vector<d>(b, c))
#define vvi vector<vector<int> >
#define vvl vector<vector<ll> >
#define vl vector<ll>
typedef long long int ll;
typedef long double ld;
using namespace std;

int main(int argc, char const *argv[]) {
  ll N;
  std::cin >> N;
  string S;
  std::cin >> S;
  if(N%2==1){
    std::cout << "No" << '\n';
  }else{
    for(int i=0;i<N/2;i++){
      if(S[i]!=S[i+N/2]){
        std::cout << "No" << '\n';
        exit(0);
      }
    }
    std::cout << "Yes" << '\n';
  }
  return 0;
}

Submission Info

Submission Time
Task B - Echo
User tonegawa
Language C++14 (Clang 3.8.0)
Score 200
Code Size 752 Byte
Status AC
Exec Time 6 ms
Memory 888 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 11
Set Name Test Cases
Sample 00-sample-00, 00-sample-01, 00-sample-02
All 00-sample-00, 00-sample-01, 00-sample-02, 01-handmade-00, 01-handmade-01, 01-handmade-02, 01-handmade-03, 01-handmade-04, 01-handmade-05, 01-handmade-06, 01-handmade-07
Case Name Status Exec Time Memory
00-sample-00 AC 6 ms 888 KB
00-sample-01 AC 1 ms 256 KB
00-sample-02 AC 1 ms 256 KB
01-handmade-00 AC 1 ms 256 KB
01-handmade-01 AC 1 ms 256 KB
01-handmade-02 AC 1 ms 256 KB
01-handmade-03 AC 1 ms 256 KB
01-handmade-04 AC 1 ms 256 KB
01-handmade-05 AC 1 ms 256 KB
01-handmade-06 AC 1 ms 256 KB
01-handmade-07 AC 1 ms 256 KB