結果
| 問題 | No.739 大事なことなので2度言います | 
| コンテスト | |
| ユーザー |  sorag | 
| 提出日時 | 2022-08-06 20:42:59 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 444 bytes | 
| コンパイル時間 | 642 ms | 
| コンパイル使用メモリ | 74,520 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-16 15:00:42 | 
| 合計ジャッジ時間 | 1,339 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#define all(x) x.begin(),x.end()
#define pb push_back
#define ll long long 
#define P pair<int,int>
#define LP pair<ll,ll>
using namespace std;
int main() {
	string s;
	cin >> s;
	bool f = 0;
	if (s.length() %2==0) {
		if(s.substr(0,s.length()/2)==s.substr(s.length()/2)) f=1;
	}
	if (f) cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}
            
            
            
        