結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
![]() |
提出日時 | 2019-03-14 16:57:56 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 21:13:39 |
合計ジャッジ時間 | 811 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <stdio.h> #include <string.h> int main() { char str[32], str2[32]; scanf("%s", str); if(strlen(str)%2 == 0){ strcpy(str2, str+strlen(str)/2); str[strlen(str)/2] = 0; if(!strcmp(str2, str)){ printf("YES\n"); return 0; } } printf("NO\n"); return 0; }