結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2019-07-14 15:32:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 420 ms |
コンパイル使用メモリ | 54,876 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 04:42:47 |
合計ジャッジ時間 | 1,014 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(void){ string str; int i; cin>>str; size_t size=str.length(); if(size%2!=0){ cout<<"NO\n"; return 0; } size/=2; for(i=0;i<size;i++){ if(str[i]!=str[size+i]){ cout<<"NO\n"; return 0; } } cout<<"YES\n"; return 0; }