結果
| 問題 | No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn |
| コンテスト | |
| ユーザー |
onakasuitacity
|
| 提出日時 | 2020-04-01 23:07:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 82,308 KB |
| 実行使用メモリ | 54,040 KB |
| 最終ジャッジ日時 | 2024-06-27 12:31:22 |
| 合計ジャッジ時間 | 1,904 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 13 WA * 6 |
ソースコード
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7 # 998244353
input=lambda:sys.stdin.readline().rstrip()
def resolve():
S = input()
if not S:
print("No")
return
count = [set() for _ in range(26)]
for i, s in enumerate(S):
if s == ' ':
continue
s = ord(s) - ord('a')
count[s].add(i%2)
print("Yes" if any(len(count[i])==1 for i in range(26)) else "NO")
resolve()
onakasuitacity