結果
| 問題 | No.739 大事なことなので2度言います | 
| コンテスト | |
| ユーザー |  yuasa0000 | 
| 提出日時 | 2019-03-11 13:33:34 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 347 bytes | 
| コンパイル時間 | 448 ms | 
| コンパイル使用メモリ | 60,816 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-23 15:30:41 | 
| 合計ジャッジ時間 | 988 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main() {
	string S;
	cin >> S;
	double d = (double)S.size()/2;
	int size = (int)(ceil(d));
	string Ss = S.substr(size,size);
	S.erase(S.begin() + size,S.end());
	if (S == Ss) {
		cout << "YES" << endl;
	}
	else if (S != Ss) {
		cout << "NO" << endl;;
	}
	return 0;
}
            
            
            
        