結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2020-02-05 07:25:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 575 ms |
コンパイル使用メモリ | 65,776 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 22:31:45 |
合計ジャッジ時間 | 1,064 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(void) {string s;cin >> s;int n = s.size();string ans = "NO";if (n % 2 == 0) {if (s.substr(0, n / 2) == s.substr(n / 2))ans = "YES";}cout << ans << endl;return 0;}