結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-23 22:41:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 328 bytes |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 70,240 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 05:45:56 |
| 合計ジャッジ時間 | 951 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s; cin >> s;
if(s.size()%2==0){
string t=s.substr(0,s.size()/2);
if(t+t==s){
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}