結果

問題 No.739 大事なことなので2度言います
ユーザー kya_ski
提出日時 2020-03-30 23:02:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 1,531 ms
コンパイル使用メモリ 166,724 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 06:13:23
合計ジャッジ時間 2,107 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    const int n = (int)s.length() / 2;
    cout << (s.substr(0, n) == s.substr(n) ? "YES" : "NO") << endl;
    return 0;
}
0