結果

問題 No.739 大事なことなので2度言います
ユーザー Hissha_
提出日時 2020-04-29 18:21:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-29 05:48:30
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

string = input()

length = len(string)

if length % 2 == 1:
    hikaku = False
else:
    hulf_length = int(length / 2)

    hikaku = True

    for str_idx in range(hulf_length):
        if string[str_idx] != string[str_idx + hulf_length]:
            hikaku = False

if hikaku:
    print('YES')
else:
    print('NO')
0