結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-06-10 21:42:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 459 bytes |
| コンパイル時間 | 969 ms |
| コンパイル使用メモリ | 90,908 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 16:44:24 |
| 合計ジャッジ時間 | 1,530 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include<iostream>
#include<math.h>
#include<string.h>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<deque>
#include<map>
#include<stdio.h>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
int n=s.size();
if(n%2!=0){
cout << "NO" << endl;
return 0;
}
for(int i=0;i<n/2;i++){
if(s[i]!=s[i+(n/2)]){
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}
mmn15277198