結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
![]() |
提出日時 | 2019-01-16 22:22:09 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 390 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 18:09:52 |
合計ジャッジ時間 | 693 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include<stdio.h> #include<string.h> int main(){ int n, k; char str[20]; scanf("%s",str); if(strlen(str) % 2 == 1) printf("NO"); else{ k = strlen(str)/2; for(int i=0; i<k; i++){ if(str[i] != str[i+k]){ printf("NO"); break; } else{ if(i == k-1) printf("YES"); } } } }