結果
| 問題 | No.739 大事なことなので2度言います | 
| コンテスト | |
| ユーザー |  TaichiK12 | 
| 提出日時 | 2018-10-19 21:09:10 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 252 bytes | 
| コンパイル時間 | 671 ms | 
| コンパイル使用メモリ | 56,316 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-20 17:41:05 | 
| 合計ジャッジ時間 | 1,020 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
int a,b=0,c;
string x;
cin>>x;
a=x.size();
if(a%2==1)b=1;
else {
c=a/2;
for(int i=0;i<c;i++){
if(x[i]==x[i+c])b+=0;
else b+=1;
}
}
if(b==0)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
            
            
            
        