結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2018-11-24 10:37:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 381 bytes |
| コンパイル時間 | 642 ms |
| コンパイル使用メモリ | 59,796 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-24 19:07:47 |
| 合計ジャッジ時間 | 1,238 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include <fstream>
#include <iostream>
#include <string>
int main() {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
std::string S;
std::cin >> S;
if (S.length() % 2 == 0) {
if (S.substr(0, S.length() / 2) == S.substr(S.length() / 2, S.length() / 2)) {
std::cout << "YES" << std::endl;
return 0;
}
}
std::cout << "NO" << std::endl;
return 0;
}
dgd1724