結果
| 問題 | 
                            No.739 大事なことなので2度言います
                             | 
                    
| コンテスト | |
| ユーザー | 
                             troro_kelp
                         | 
                    
| 提出日時 | 2018-12-30 13:42:06 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 598 bytes | 
| コンパイル時間 | 766 ms | 
| コンパイル使用メモリ | 95,688 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-07 02:13:51 | 
| 合計ジャッジ時間 | 1,264 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 | 
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stack>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <functional>
#include <numeric>
using ll = long long;
using namespace std;
const ll MOD = 1e9 + 7;
int arr[32];
int main(void)
{
    string s;
    cin >> s;
    string t1 = s.substr(0, (s.size() + 1) / 2);
    string t2 = s.substr((s.size() + 1) / 2, s.size() / 2);
    //cout << t1 << " " << t2 << endl;
    if (t1 == t2)
        cout << "YES" << endl;
    else
        cout << "NO" << endl;
    return 0;
}
            
            
            
        
            
troro_kelp