結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
|
提出日時 | 2019-10-02 09:16:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 544 ms |
コンパイル使用メモリ | 63,400 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 05:51:27 |
合計ジャッジ時間 | 1,101 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <cstdio>#include <iostream>#include <string>#define rep( i, n, m ) for(int i = ( n ); i < ( m ); i++)typedef long long int ll;int main( void ){std::string str;std::cin >> str;if(str.length() % 2 != 0){printf("NO\n");return 0;}int len = str.length()/2;rep( i, 0, len){if (str[i] != str[i+len]){printf("NO\n");return 0;}}printf("YES\n");return 0;}