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