結果
| 問題 | No.739 大事なことなので2度言います | 
| コンテスト | |
| ユーザー |  chacoder1 | 
| 提出日時 | 2021-01-02 19:40:07 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 337 bytes | 
| コンパイル時間 | 1,882 ms | 
| コンパイル使用メモリ | 192,928 KB | 
| 最終ジャッジ日時 | 2025-01-17 09:06:55 | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  int len=S.length();
  if(len%2 != 0){
    cout<<"NO"<<endl;
    return 0;
  }
  if(S.substr(0,len/2)==S.substr(len/2,len/2)){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
  //cout<<S.substr(0,len/2)<<" "<<S.substr(len/2,len/2)<<endl;
}
            
            
            
        