結果
| 問題 | No.739 大事なことなので2度言います | 
| コンテスト | |
| ユーザー |  yui | 
| 提出日時 | 2019-01-27 12:41:08 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 525 bytes | 
| コンパイル時間 | 853 ms | 
| コンパイル使用メモリ | 99,024 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-22 15:30:15 | 
| 合計ジャッジ時間 | 1,472 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<unordered_map>
#include<climits>
#include<cstdlib>
#include<cmath>
#include<string>
#include<iomanip>
using namespace std;
int main() {
	string s;
	cin >> s;
	int n = s.size();
	if (n % 2) {
		cout << "NO" << endl;
		return 0;
	}
	bool flg = s.substr(0, n / 2) == s.substr(n / 2, n / 2);
	if (flg) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}
            
            
            
        