Submission #8466473


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(0); cin.tie(0);
	int N; string s;
	cin>>N; cin>>s;
	if(N%2){
		cout<<"No"; return 0;
	}
	int tr=1;
	for(int i=0;i<N/2;i++){
		if(s[i] != s[i+(N/2)]) tr=0;
	}
	if(tr) cout<<"Yes";
	else cout<<"No";
}

Submission Info

Submission Time
Task B - Echo
User Seremo
Language C++14 (GCC 5.4.1)
Score 200
Code Size 297 Byte
Status AC
Exec Time 1 ms
Memory 256 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 1 ms 256 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