結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
![]() |
提出日時 | 2019-07-07 18:10:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 1,654 ms |
コンパイル使用メモリ | 166,480 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 02:40:46 |
合計ジャッジ時間 | 2,226 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 5 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (n % 2 == 1) { cout << "NO" << endl; return 0; } string s1, s2; s1 = (0, n/2); s2 = (n/2, n/2); if (s1 == s2) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }