結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
Heropro7
|
| 提出日時 | 2018-10-23 23:33:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 56,428 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-20 17:44:11 |
| 合計ジャッジ時間 | 1,046 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 2 |
ソースコード
#include<iostream>
#include<cstring>
using namespace std;
int main(void){
int x;
char str[20];
cin >> str;
x = strlen(str);
if(x%2==1){cout << "NO\n";return 0;}
x = x/2;
for(int i=0;i<x;i++){
if(str[i]!=str[x+i]){cout << "NO\n";return 0;}
}
cout << "YES\n";
return 0;
}
Heropro7