結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
niimi
|
| 提出日時 | 2018-10-05 21:23:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 853 bytes |
| コンパイル時間 | 1,193 ms |
| コンパイル使用メモリ | 159,968 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 12:47:54 |
| 合計ジャッジ時間 | 1,705 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 6 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
typedef std::pair<int, int> P;
#define For(i, a, b) for(int i = (a); i < (b); i++)
#define Rep(i, n) For(i, 0, (n))
#define Rrep(i, n) for(int i = (n - 1); i >= 0; i--)
#define All(i, x) for(typeof(x.begin()) i = x.begin(); i != x.end(); i++)
#define ReAll(i, x) for(typeof(x.end()) i = x.end(); i != x.begin(); i--)
#define pb push_back
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
const int MAX = 100000;
const int INF = 1e9;
const int MOD = 1000000007;
const string END = "\n";
void solve(){
string s; cin >> s;
int l = s.size();
bool flag = true;
Rep(i, l/2){
if(s[i] != s[i + l/2]){
flag = false;
}
}
if(flag) cout << "YES" << END;
else cout << "NO" << END;
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
solve();
return 0;
}
niimi