結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2020-03-08 20:38:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 1,591 ms |
コンパイル使用メモリ | 166,984 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 16:58:28 |
合計ジャッジ時間 | 2,294 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef vector<int> VI;typedef vector<ll> VLL;#define rep(i,n) for(int i=0; i<(int)(n); i++)int main(){string s,h;cin >> s;int size = s.size();h = s.substr(0,size/2);for(int i=size/2; i<size; ++i){if(h[i-size/2] != s[i]){cout << "NO" << endl;return 0;}}cout << "YES" << endl;return 0;}