結果
| 問題 | No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn |
| コンテスト | |
| ユーザー |
onakasuitacity
|
| 提出日時 | 2020-04-01 23:05:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-06-27 12:29:51 |
| 合計ジャッジ時間 | 1,942 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 2 |
| other | AC * 9 WA * 10 |
ソースコード
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