#17733: simple python solution


peterpeter200412@gmail.com (Peter Lin)

學校 : University of California Los Angeles
編號 : 97075
來源 : [220.134.201.198]
最後登入時間 :
2019-05-13 09:21:52
b367. 翻轉世界 -- 自己 | From: [61.219.165.80] | 發表日期 : 2019-05-12 18:37

test_time = int(input())

for i in range(test_time):

n, m = input().split()
l = list()
for j in range(int(n)):

l+=input().split()

print(['keep defending', 'go forward'][l==l[::-1]])

 
ZeroJudge Forum