結果

問題 No.3061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー titiatitia
提出日時 2020-04-01 22:08:51
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 283 bytes
コンパイル時間 892 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 79,072 KB
最終ジャッジ日時 2023-09-09 18:26:07
合計ジャッジ時間 3,408 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,116 KB
testcase_01 AC 69 ms
71,244 KB
testcase_02 AC 72 ms
71,140 KB
testcase_03 AC 70 ms
70,924 KB
testcase_04 AC 71 ms
71,188 KB
testcase_05 AC 70 ms
70,924 KB
testcase_06 AC 70 ms
71,448 KB
testcase_07 AC 70 ms
71,180 KB
testcase_08 AC 71 ms
71,220 KB
testcase_09 AC 70 ms
71,224 KB
testcase_10 AC 71 ms
71,084 KB
testcase_11 AC 69 ms
71,456 KB
testcase_12 AC 70 ms
71,236 KB
testcase_13 RE -
testcase_14 AC 70 ms
71,144 KB
testcase_15 RE -
testcase_16 AC 70 ms
71,092 KB
testcase_17 AC 70 ms
71,136 KB
testcase_18 AC 69 ms
71,248 KB
testcase_19 AC 69 ms
71,244 KB
testcase_20 AC 71 ms
71,288 KB
testcase_21 AC 70 ms
71,264 KB
testcase_22 AC 70 ms
71,264 KB
testcase_23 AC 69 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

S=input().strip()
A=[set() for i in range(26)]

for i in range(len(S)):
    if 0<=ord(S[i])-97<26:
        A[ord(S[i])-97].add(i%2)

if len(S)<=1:
    print("NO")
    sys.exit()
    

for a in A:
    if len(a)==1:
        print("Yes")
        break
else:
    print("NO")
0