結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
|
提出日時 | 2019-05-17 17:41:49 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 503 ms |
コンパイル使用メモリ | 56,460 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 05:58:19 |
合計ジャッジ時間 | 1,140 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){string S;cin>>S;if(S.size()%2==0){string T;for(int x=0;x<S.size()/2;x++){T[x]=S[S.size()/2+x];if(T[x]!=S[x]){cout<<"NO"<<endl;return 0;}}}else{cout<<"NO"<<endl;return 0;}cout<<"YES"<<endl;return 0;}