結果

問題 No.739 大事なことなので2度言います
ユーザー michonz4
提出日時 2019-12-01 21:59:05
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 842 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-21 19:42:56
合計ジャッジ時間 1,486 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main() {
  char s[21];
  scanf("%s", s);
  int len = (strlen(s) + 1) / 2;

  printf("%s\n", strncmp(s, &s[len], len) == 0 ? "YES": "NO");
  return 0;
}
0