結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2022-08-06 20:42:59 |
言語 | C++14 (gcc 11.2.0 + boost 1.78.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 444 Byte |
コンパイル時間 | 538 ms |
使用メモリ | 3,556 KB |
最終ジャッジ日時 | 2022-08-06 20:43:01 |
合計ジャッジ時間 | 1,777 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
3,476 KB |
testcase_01 | AC | 1 ms
3,440 KB |
testcase_02 | AC | 1 ms
3,556 KB |
testcase_03 | AC | 1 ms
3,420 KB |
testcase_04 | AC | 1 ms
3,356 KB |
testcase_05 | AC | 2 ms
3,424 KB |
testcase_06 | AC | 2 ms
3,544 KB |
testcase_07 | AC | 2 ms
3,556 KB |
testcase_08 | AC | 2 ms
3,476 KB |
testcase_09 | AC | 1 ms
3,532 KB |
testcase_10 | AC | 1 ms
3,464 KB |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> #define all(x) x.begin(),x.end() #define pb push_back #define ll long long #define P pair<int,int> #define LP pair<ll,ll> using namespace std; int main() { string s; cin >> s; bool f = 0; if (s.length() %2==0) { if(s.substr(0,s.length()/2)==s.substr(s.length()/2)) f=1; } if (f) cout << "YES" << endl; else cout << "NO" << endl; return 0; }