結果

問題 No.739 大事なことなので2度言います
ユーザー troro_kelptroro_kelp
提出日時 2018-12-30 13:41:52
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 596 bytes
コンパイル時間 855 ms
コンパイル使用メモリ 94,316 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-16 09:34:56
合計ジャッジ時間 1,530 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0