結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
|
提出日時 | 2018-10-05 21:24:30 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-20 16:27:12 |
合計ジャッジ時間 | 742 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <stdio.h>#include <string.h>int main(void){char S[21];int length, i;scanf("%s", S);length = strlen(S);if (length % 2) puts("NO");else {for (i = 0; i < length / 2; ++i) {if (S[i] != S[length / 2 + i]) break;}if (i == length / 2) puts("YES");else puts("NO");}return 0;}