結果
問題 |
No.2240 WAC
|
ユーザー |
|
提出日時 | 2023-03-13 16:55:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 383 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,964 KB |
最終ジャッジ日時 | 2024-09-18 07:37:46 |
合計ジャッジ時間 | 3,740 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 WA * 10 |
ソースコード
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")