Skip to content

Commit c520164

Browse files
committed
🥺chore
1 parent 03ab21b commit c520164

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

abc103/b/main.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ def make_list(n, *args, default=0): return [make_list(*args, default=default) fo
3737
sys.setrecursionlimit(1000000)
3838

3939
def main():
40-
N = I()
40+
S = SL()
41+
T = SL()
42+
43+
for _ in range(102):
44+
S = [S[-1]] + S[:-1]
45+
if S == T:
46+
print("Yes")
47+
return
48+
49+
print("No")
50+
4151

4252
if __name__ == '__main__':
4353
main()

0 commit comments

Comments
 (0)