結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
gazelle
|
| 提出日時 | 2018-10-05 22:52:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 722 bytes |
| コンパイル時間 | 2,008 ms |
| コンパイル使用メモリ | 193,880 KB |
| 最終ジャッジ日時 | 2025-01-06 14:20:08 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include<bits/stdc++.h>
#include<random>
using namespace std;
using ll=long long;
using ld=long double;
using P=pair<ll,ll>;
#define MOD 1000000007LL
#define INF 1000000000LL
#define EPS 1e-10
#define FOR(i,n,m) for(ll i=n;i<(ll)m;i++)
#define REP(i,n) FOR(i,0,n)
#define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";else cout<<endl;}
#define ALL(v) v.begin(),v.end()
#define UNIQUE(v) sort(ALL(v));v.erase(unique(ALL(v)),v.end());
#define pb push_back
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin>>s;
if((int)s.size()%2) {
cout<<"NO"<<endl;
} else {
if(s.substr(0,s.size()/2)==s.substr(s.size()/2,s.size()/2)) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
return 0;
}
gazelle