結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2020-08-04 07:53:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 280 bytes |
| コンパイル時間 | 1,127 ms |
| コンパイル使用メモリ | 64,328 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 04:57:42 |
| 合計ジャッジ時間 | 1,365 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string S;
cin >> S;
int N = S.size();
if (N % 2 == 1){
cout << "NO" << endl;
} else {
if (S.substr(0, N / 2) != S.substr(N / 2)){
cout << "NO" << endl;
} else {
cout << "YES" << endl;
}
}
}
SSRS