結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
|
提出日時 | 2018-10-19 21:38:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-20 17:40:32 |
合計ジャッジ時間 | 1,085 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
sentence = input() sentence_list = list(sentence) num = len(sentence_list) if num % 2 == 0: half = num // 2 list1 = list() list2 = list() for i in range(half): list1 = sentence_list[i] for j in range(half): list2 = sentence_list[j + half] if list1 == list2: print("YES") else: print("NO") else: print("NO")