結果

問題 No.3374 Caesar Shift Game
コンテスト
ユーザー まぬお
提出日時 2025-11-21 21:48:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 661 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 138,512 KB
最終ジャッジ日時 2025-11-21 21:48:29
合計ジャッジ時間 7,344 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations
from heapq import heappop, heappush
import math, sys
input = lambda: sys.stdin.readline().rstrip("\r\n")
_int = lambda x: int(x)-1
MOD = 998244353 #10**9+7
INF = 1<<60
Yes, No = "Yes", "No"

T = int(input())
for _ in range(T):
    N = int(input())
    S = list(input())
    for i in range(N):
        if i%2:
            if S[i] != "C":
                S[i] = chr(ord(S[i])+1)
            else: break
        else:
            if S[i] == "C":
                S[i] = "A"
            else: break
    print(*S, sep="")
0