結果

問題 No.2240 WAC
ユーザー AhmadovAhmadov
提出日時 2023-03-13 16:55:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 11,928 KB
実行使用メモリ 11,064 KB
最終ジャッジ日時 2023-10-18 11:11:17
合計ジャッジ時間 3,662 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,084 KB
testcase_01 AC 30 ms
10,084 KB
testcase_02 AC 30 ms
10,084 KB
testcase_03 AC 29 ms
10,084 KB
testcase_04 WA -
testcase_05 AC 30 ms
10,084 KB
testcase_06 WA -
testcase_07 AC 30 ms
10,084 KB
testcase_08 AC 29 ms
10,084 KB
testcase_09 AC 30 ms
10,084 KB
testcase_10 WA -
testcase_11 AC 44 ms
10,716 KB
testcase_12 AC 40 ms
10,980 KB
testcase_13 AC 47 ms
10,328 KB
testcase_14 AC 37 ms
10,204 KB
testcase_15 AC 64 ms
10,704 KB
testcase_16 WA -
testcase_17 AC 57 ms
10,484 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 65 ms
10,728 KB
testcase_21 WA -
testcase_22 AC 51 ms
10,676 KB
testcase_23 AC 46 ms
10,456 KB
testcase_24 AC 62 ms
10,696 KB
testcase_25 WA -
testcase_26 AC 41 ms
10,324 KB
testcase_27 AC 40 ms
10,244 KB
testcase_28 AC 44 ms
10,456 KB
testcase_29 AC 34 ms
10,204 KB
testcase_30 AC 52 ms
10,624 KB
testcase_31 AC 74 ms
11,052 KB
testcase_32 WA -
testcase_33 AC 52 ms
10,452 KB
testcase_34 AC 57 ms
10,532 KB
testcase_35 AC 34 ms
10,164 KB
testcase_36 WA -
testcase_37 AC 69 ms
10,636 KB
testcase_38 AC 43 ms
10,356 KB
testcase_39 AC 76 ms
11,064 KB
testcase_40 AC 52 ms
10,420 KB
testcase_41 AC 60 ms
10,696 KB
testcase_42 AC 60 ms
10,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
s = input()
t=s

s=t.replace("AC","");
s=t.replace("WA","");
s=t.replace("AC","");
s=t.replace("WA","");
s=t.replace("AC","");
s=t.replace("WA","");

t=t.replace("WA","");
t=t.replace("AC","");
t=t.replace("WA","");
t=t.replace("AC","");
t=t.replace("WA","");
t=t.replace("AC","");

if(s==s[::-1] or t==t[::-1]):
    print("Yes")
else:
    print("No")
0