結果

問題 No.3061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー titiatitia
提出日時 2020-04-01 22:42:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 1,534 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-09-09 19:25:37
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 72 ms
71,424 KB
testcase_02 AC 74 ms
71,268 KB
testcase_03 AC 70 ms
71,312 KB
testcase_04 AC 69 ms
71,304 KB
testcase_05 AC 71 ms
71,232 KB
testcase_06 AC 71 ms
71,424 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 72 ms
71,076 KB
testcase_10 AC 71 ms
71,364 KB
testcase_11 AC 71 ms
71,420 KB
testcase_12 AC 71 ms
71,188 KB
testcase_13 AC 70 ms
71,192 KB
testcase_14 AC 71 ms
71,424 KB
testcase_15 AC 71 ms
71,508 KB
testcase_16 AC 71 ms
71,188 KB
testcase_17 AC 71 ms
71,288 KB
testcase_18 AC 70 ms
71,360 KB
testcase_19 AC 71 ms
71,364 KB
testcase_20 AC 70 ms
71,140 KB
testcase_21 AC 69 ms
71,512 KB
testcase_22 AC 70 ms
71,212 KB
testcase_23 AC 71 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

S=input()
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