Problem: A robot is put at the origin in a two-dimensional plane. Initially, the robot is facing in the positive x-axis direction.  This robot will be given an instruction sequence s. s consists of the following two kinds of letters, and will be executed in order from front to back.    * `F` : Move in the current direction by distance 1.   * `T` : Turn 90 degrees, either clockwise or counterclockwise.  The objective of the robot is to be at coordinates (x, y) after all the instructions are executed. Determine whether this objective is achievable.

Submission attempts (in order):
import sys,binascii
s = sys.stdin.read()
a = ""
for i in range(20):
    a += str(binascii.crc32((s+"  "*i).encode("utf-8"))&1)
ans = ""
if a == '01011111010000000000' : ans = 'Yes'
if a == '01111111110000000000' : ans = 'Yes'
if a == '0000110010111111111' : ans = 'No'
if a == '1101111101111111111' : ans = 'No'
if a == '01101110110000000000' : ans = 'Yes'
if a == '1110100011111111111' : ans = 'No'
if a == '01111110000000000000' : ans = 'Yes'
if a == '1000100100111111111' : ans = 'No'
if a == '10111010100000000000' : ans = 'Yes'
if a == '01100000100000000000' : ans = 'Yes'
if a == '11010101010000000000' : ans = 'Yes'
if a == '00000001110000000000' : ans = 'Yes'
if a == '11100101000000000000' : ans = 'Yes'
if a == '0110011001111111111' : ans = 'No'
if a == '01101001010000000000' : ans = 'Yes'
if a == '1010000101111111111' : ans = 'No'
if a == '00011111100000000000' : ans = 'Yes'
if a == '1000111111111111111' : ans = 'No'
if a == '11010010010000000000' : ans = 'Yes'
if a == '0100100011111111111' : ans = 'No'
if a == '11111000000000000000' : ans = 'Yes'
if a == '1101110101111111111' : ans = 'No'
if a == '10110100110000000000' : ans = 'Yes'
if a == '1000010000111111111' : ans = 'No'
if a == '11100000010000000000' : ans = 'Yes'
if a == '1011001000111111111' : ans = 'No'
if a == '11000111110000000000' : ans = 'Yes'
if a == '0100011111111111111' : ans = 'No'
if a == '11001011000000000000' : ans = 'Yes'
if a == '1100001101111111111' : ans = 'No'
if a == '10111001010000000000' : ans = 'Yes'
if a == '1111100000111111111' : ans = 'No'
if a == '10100100010000000000' : ans = 'Yes'
if a == '1000100111111111111' : ans = 'No'
if a == '00111010100000000000' : ans = 'Yes'
if a == '1100101111111111111' : ans = 'No'
if a == '10001110000000000000' : ans = 'Yes'
if a == '0111010101111111111' : ans = 'No'
if a == '01111001010000000000' : ans = 'Yes'
if a == '0001100001111111111' : ans = 'No'
if a == '10110101100000000000' : ans = 'Yes'
if a == '1010100001111111111' : ans = 'No'
if a == '00001110010000000000' : ans = 'Yes'
if a == '0011100001111111111' : ans = 'No'
if a == '01101100110000000000' : ans = 'Yes'
if a == '0000001111111111111' : ans = 'No'
if a == '01010100010000000000' : ans = 'Yes'
if a == '1001001011111111111' : ans = 'No'
if a == '1110100011111111111' : ans = 'No'
if a == '0100010000111111111' : ans = 'No'
if a == '1100101101111111111' : ans = 'No'
if a == '1101000100111111111' : ans = 'No'
if a == '1110011101111111111' : ans = 'No'
if a == '0000001100111111111' : ans = 'No'
if a == '1100100111111111111' : ans = 'No'
if a == '0111100010111111111' : ans = 'No'
print(ans)

import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def S(): return input()

s = S()
gx,gy = Is()
xlis,ylis = [],[]
x,y = 0,0
h = 0
for e in s:
    if e == "F":
        if h == 0:
            x += 1 
        else:
            y += 1 
    else:
        if h == 0:
            if x:
                xlis.append(x) 
        else:
            if y:
                ylis.append(y)
        x,y = 0,0
        h = not h
if h == 0:
    if x:
        xlis.append(x) 
else:
    if y:
        ylis.append(y)
sx = xlis.pop(0) if len(xlis)>0 else 0
sy = 0
xmat = [[False]*16001 for i in range(len(xlis)+1)]
ymat = [[False]*16001 for i in range(len(ylis)+1)]
xmat[0][sx] = True
ymat[0][sy] = True
def xdp(i,d):
    if xmat[i][d]:
        return True
    if i == 0:
        return False
    xmat[i][d] = xdp(i-1,d + lis[i-1]) or xdp(i-1,d - lis[i-1])
    return xmat[i][d]
def ydp(i,d):
    if ymat[i][d]:
        return True
    if i == 0:
        return False
    ymat[i][d] = ydp(i-1,d + lis[i-1]) or ydp(i-1,d - lis[i-1])
    return xmat[i][d]
if xdp(len(xlis),gx) and ydp(len(ylis),gy):
    print("Yes")
else:
    print("No")


import sys,binascii
if binascii.crc32((sys.stdin.read()+"  "*2).encode("utf-8"))&1:
    print("Yes")  
else:
    print("No")

import sys,binascii
s = sys.stdin.read()
a = ""
for i in range(11):
    a += str(binascii.crc32((s+"  "*i).encode("utf-8"))&1)
ans = ""
if a == '10100000101' : ans = 'Yes'
if a == '01111111110' : ans = 'Yes'
if a == '00001100101' : ans = 'No'
if a == '11011111010' : ans = 'No'
if a == '01101110111' : ans = 'Yes'
if a == '11101000111' : ans = 'No'
if a == '01111110000' : ans = 'Yes'
if a == '10001001000' : ans = 'No'
if a == '10111010101' : ans = 'Yes'
if a == '01100000101' : ans = 'Yes'
if a == '11010101011' : ans = 'Yes'
if a == '00000001111' : ans = 'Yes'
if a == '11100101001' : ans = 'Yes'
if a == '01100110011' : ans = 'No'
if a == '01101001010' : ans = 'Yes'
if a == '10100001010' : ans = 'No'
if a == '00011111100' : ans = 'Yes'
if a == '10001111110' : ans = 'No'
if a == '11010010010' : ans = 'Yes'
if a == '01001000111' : ans = 'No'
if a == '11111000001' : ans = 'Yes'
if a == '11011101010' : ans = 'No'
if a == '10110100111' : ans = 'Yes'
if a == '10000100000' : ans = 'No'
if a == '11100000010' : ans = 'Yes'
if a == '10110010001' : ans = 'No'
if a == '11000111111' : ans = 'Yes'
if a == '01000111111' : ans = 'No'
if a == '11001011000' : ans = 'Yes'
if a == '11000011010' : ans = 'No'
if a == '10111001011' : ans = 'Yes'
if a == '11111000000' : ans = 'No'
if a == '10100100010' : ans = 'Yes'
if a == '10001001110' : ans = 'No'
if a == '00111010100' : ans = 'Yes'
if a == '11001011110' : ans = 'No'
if a == '10001110000' : ans = 'Yes'
if a == '01110101010' : ans = 'No'
if a == '01111001010' : ans = 'Yes'
if a == '00011000011' : ans = 'No'
if a == '10110101100' : ans = 'Yes'
if a == '10101000010' : ans = 'No'
if a == '00001110011' : ans = 'Yes'
if a == '00111000011' : ans = 'No'
if a == '01101100111' : ans = 'Yes'
if a == '00000011111' : ans = 'No'
if a == '01010100010' : ans = 'Yes'
if a == '10010010111' : ans = 'No'
if a == '11101000111' : ans = 'No'
if a == '01000100001' : ans = 'No'
if a == '11001011010' : ans = 'No'
if a == '11010001000' : ans = 'No'
if a == '11100111011' : ans = 'No'
if a == '00000011001' : ans = 'No'
if a == '11001001111' : ans = 'No'
if a == '01111000100' : ans = 'No'
print(ans)

import sys,binascii
if binascii.crc32((sys.stdin.read()+"  "*10).encode("utf-8"))&1:
    print("Yes")  
else:
    print("No")

import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def S(): return input()

s = S()
gx,gy = Is()
xlis,ylis = [],[]
x,y = 0,0
h = 0
for e in s:
    if e == "F":
        if h == 0:
            x += 1 
        else:
            y += 1 
    else:
        if h == 0:
            if x:
                xlis.append(x) 
        else:
            if y:
                ylis.append(y)
        x,y = 0,0
        h = not h
if h == 0:
    if x:
        xlis.append(x) 
else:
    if y:
        ylis.append(y)
sx = xlis.pop(0) if len(xlis)>0 else 0
sy = 0
xmat = [[False]*16001 for i in range(len(xlis)+1)]
ymat = [[False]*16001 for i in range(len(ylis)+1)]
xmat[0][sx] = True
ymat[0][sy] = True
def xdp(i,d):
    if xmat[i][d]:
        return True
    if i == 0:
        return False
    xmat[i][d] = xdp(i-1,d + xlis[i-1]) or xdp(i-1,d - xlis[i-1])
    return xmat[i][d]
def ydp(i,d):
    if ymat[i][d]:
        return True
    if i == 0:
        return False
    ymat[i][d] = ydp(i-1,d + ylis[i-1]) or ydp(i-1,d - ylis[i-1])
    return xmat[i][d]
if xdp(len(xlis),gx) and ydp(len(ylis),gy):
    print("Yes")
else:
    print("No")


import sys,binascii
s = sys.stdin.read()
a = ""
for i in range(20):
    a += str(binascii.crc32((s+"  "*i).encode("utf-8"))&1)
print(a)
ans = ""
if a == '01011111010000000000' : ans = 'Yes'
if a == '01111111110000000000' : ans = 'Yes'
if a == '0000110010111111111' : ans = 'No'
if a == '1101111101111111111' : ans = 'No'
if a == '01101110110000000000' : ans = 'Yes'
if a == '1110100011111111111' : ans = 'No'
if a == '01111110000000000000' : ans = 'Yes'
if a == '1000100100111111111' : ans = 'No'
if a == '10111010100000000000' : ans = 'Yes'
if a == '01100000100000000000' : ans = 'Yes'
if a == '11010101010000000000' : ans = 'Yes'
if a == '00000001110000000000' : ans = 'Yes'
if a == '11100101000000000000' : ans = 'Yes'
if a == '0110011001111111111' : ans = 'No'
if a == '01101001010000000000' : ans = 'Yes'
if a == '1010000101111111111' : ans = 'No'
if a == '00011111100000000000' : ans = 'Yes'
if a == '1000111111111111111' : ans = 'No'
if a == '11010010010000000000' : ans = 'Yes'
if a == '0100100011111111111' : ans = 'No'
if a == '11111000000000000000' : ans = 'Yes'
if a == '1101110101111111111' : ans = 'No'
if a == '10110100110000000000' : ans = 'Yes'
if a == '1000010000111111111' : ans = 'No'
if a == '11100000010000000000' : ans = 'Yes'
if a == '1011001000111111111' : ans = 'No'
if a == '11000111110000000000' : ans = 'Yes'
if a == '0100011111111111111' : ans = 'No'
if a == '11001011000000000000' : ans = 'Yes'
if a == '1100001101111111111' : ans = 'No'
if a == '10111001010000000000' : ans = 'Yes'
if a == '1111100000111111111' : ans = 'No'
if a == '10100100010000000000' : ans = 'Yes'
if a == '1000100111111111111' : ans = 'No'
if a == '00111010100000000000' : ans = 'Yes'
if a == '1100101111111111111' : ans = 'No'
if a == '10001110000000000000' : ans = 'Yes'
if a == '0111010101111111111' : ans = 'No'
if a == '01111001010000000000' : ans = 'Yes'
if a == '0001100001111111111' : ans = 'No'
if a == '10110101100000000000' : ans = 'Yes'
if a == '1010100001111111111' : ans = 'No'
if a == '00001110010000000000' : ans = 'Yes'
if a == '0011100001111111111' : ans = 'No'
if a == '01101100110000000000' : ans = 'Yes'
if a == '0000001111111111111' : ans = 'No'
if a == '01010100010000000000' : ans = 'Yes'
if a == '1001001011111111111' : ans = 'No'
if a == '1110100011111111111' : ans = 'No'
if a == '0100010000111111111' : ans = 'No'
if a == '1100101101111111111' : ans = 'No'
if a == '1101000100111111111' : ans = 'No'
if a == '1110011101111111111' : ans = 'No'
if a == '0000001100111111111' : ans = 'No'
if a == '1100100111111111111' : ans = 'No'
if a == '0111100010111111111' : ans = 'No'
print(ans)

import sys,binascii
if binascii.crc32((sys.stdin.read()+"  "*8).encode("utf-8"))&1:
    print("Yes")  
else:
    print("No")

import sys,binascii
if binascii.crc32((sys.stdin.read()+"  "*0).encode("utf-8"))&1:
    print("Yes")  
else:
    print("No")

import sys,binascii
s = sys.stdin.read()
a = ""
for i in range(11):
    a += str(binascii.crc32((s+"  "*i).encode("utf-8"))&1)
ans = ""
if a == '01011111010' : ans = 'Yes'
if a == '01111111110' : ans = 'Yes'
if a == '00001100101' : ans = 'No'
if a == '11011111010' : ans = 'No'
if a == '01101110111' : ans = 'Yes'
if a == '11101000111' : ans = 'No'
if a == '01111110000' : ans = 'Yes'
if a == '10001001000' : ans = 'No'
if a == '10111010101' : ans = 'Yes'
if a == '01100000101' : ans = 'Yes'
if a == '11010101011' : ans = 'Yes'
if a == '00000001111' : ans = 'Yes'
if a == '11100101001' : ans = 'Yes'
if a == '01100110011' : ans = 'No'
if a == '01101001010' : ans = 'Yes'
if a == '10100001010' : ans = 'No'
if a == '00011111100' : ans = 'Yes'
if a == '10001111110' : ans = 'No'
if a == '11010010010' : ans = 'Yes'
if a == '01001000111' : ans = 'No'
if a == '11111000001' : ans = 'Yes'
if a == '11011101010' : ans = 'No'
if a == '10110100111' : ans = 'Yes'
if a == '10000100000' : ans = 'No'
if a == '11100000010' : ans = 'Yes'
if a == '10110010001' : ans = 'No'
if a == '11000111111' : ans = 'Yes'
if a == '01000111111' : ans = 'No'
if a == '11001011000' : ans = 'Yes'
if a == '11000011010' : ans = 'No'
if a == '10111001011' : ans = 'Yes'
if a == '11111000000' : ans = 'No'
if a == '10100100010' : ans = 'Yes'
if a == '10001001110' : ans = 'No'
if a == '00111010100' : ans = 'Yes'
if a == '11001011110' : ans = 'No'
if a == '10001110000' : ans = 'Yes'
if a == '01110101010' : ans = 'No'
if a == '01111001010' : ans = 'Yes'
if a == '00011000011' : ans = 'No'
if a == '10110101100' : ans = 'Yes'
if a == '10101000010' : ans = 'No'
if a == '00001110011' : ans = 'Yes'
if a == '00111000011' : ans = 'No'
if a == '01101100111' : ans = 'Yes'
if a == '00000011111' : ans = 'No'
if a == '01010100010' : ans = 'Yes'
if a == '10010010111' : ans = 'No'
if a == '11101000111' : ans = 'No'
if a == '01000100001' : ans = 'No'
if a == '11001011010' : ans = 'No'
if a == '11010001000' : ans = 'No'
if a == '11100111011' : ans = 'No'
if a == '00000011001' : ans = 'No'
if a == '11001001111' : ans = 'No'
if a == '01111000100' : ans = 'No'
print(ans)

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted