結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
sanyonfu
|
| 提出日時 | 2019-08-03 11:42:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 584 bytes |
| コンパイル時間 | 1,193 ms |
| コンパイル使用メモリ | 158,680 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-05 08:36:25 |
| 合計ジャッジ時間 | 1,709 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
bool A = 1;
if(S.size()%2 == 1){
A = 0;
}else{
for(int i = 0; i < S.size()/2; i++){
if(S.at(i)==S.at(S.size()/2 + i)){
}else{
A = 0;
break;
}
}
}
if(A == 0){
cout << "NO" << endl;
}else{
cout << "YES" << endl;
}
}
sanyonfu