結果

問題 No.2322 MMA文字列
ユーザー zekito_Bakazekito_Baka
提出日時 2023-05-28 13:39:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 1,404 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,880 KB
実行使用メモリ 8,792 KB
最終ジャッジ日時 2023-08-27 08:12:04
合計ジャッジ時間 1,502 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,680 KB
testcase_01 AC 22 ms
8,708 KB
testcase_02 AC 21 ms
8,548 KB
testcase_03 AC 20 ms
8,684 KB
testcase_04 AC 20 ms
8,752 KB
testcase_05 AC 20 ms
8,784 KB
testcase_06 AC 21 ms
8,688 KB
testcase_07 AC 21 ms
8,684 KB
testcase_08 AC 21 ms
8,680 KB
testcase_09 AC 20 ms
8,792 KB
testcase_10 AC 20 ms
8,752 KB
testcase_11 AC 20 ms
8,784 KB
testcase_12 AC 20 ms
8,624 KB
testcase_13 AC 20 ms
8,676 KB
testcase_14 AC 20 ms
8,656 KB
testcase_15 AC 20 ms
8,680 KB
testcase_16 AC 20 ms
8,624 KB
testcase_17 AC 20 ms
8,752 KB
testcase_18 AC 20 ms
8,548 KB
testcase_19 AC 20 ms
8,620 KB
testcase_20 AC 21 ms
8,744 KB
testcase_21 AC 20 ms
8,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

input = stdin.readline
from functools import lru_cache

@lru_cache(maxsize=1000)
def next():
    x = input().rstrip()
    return(x)
def nextint():
    x = int(input())
    return(x)
def nextfloat():
    x = float(input())
    return(x)
def nextlist():
    x = list(input().rstrip().split()) 
    return(x)
def nextintlist():
    x = list(map(int, input().rstrip().split())) 
    return(x)
def nextfloatlist():
    x = list(map(float, input().rstrip().split())) 
    return(x)  
def nextlist2():
  n = int(input())  # nは入力回数
  x = [input().rstrip() for _ in range(n)]
  return(x)
def nextintlist2():
  n = int(input())  # nは入力回数
  x = [int(input()) for _ in range(n)]
  return(x)
def nextfloatlist2():
  n = int(input())  # nは入力回数
  x = [float(input()) for _ in range(n)]
  return(x)
def nextdoublelist():
    n = int(input())  # nは入力回数
    x = [list(input().rstrip().split()) for _ in range(n)]
    return(x)
def nextdoubleintlist():
    n = int(input())  # nは入力回数
    x = [list(map(int, input().rstrip().split())) for _ in range(n)]
    return(x)
def nextdoublefloatlist():
    n = int(input())  # nは入力回数
    x = [list(map(float, input().rstrip().split())) for _ in range(n)]
    return(x)

s = list(input())
if s[0] == s[1] and s[1] == s[2]:
    print("No")
elif s[1] == s[0]:
    print("Yes")

else:
    print("No")


0