Problem:


Score : 200 points

Problem Statement

Takahashi is standing on a two-dimensional plane, facing north. Find the minimum positive integer K such that Takahashi will be at the starting position again after he does the following action K times:

Go one meter in the direction he is facing. Then, turn X degrees counter-clockwise.

Constraints

1 \leq X \leq 179

X is an integer.

Input

Input is given from Standard Input in the following format:

X

Output

Print the number of times Takahashi will do the action before he is at the starting position again.

Sample Input 1

90

Sample Output 1

4

Takahashi's path is a square.

Sample Input 2

1

Sample Output 2

360



Sample input:
90


Sample output:
4

Submission status: Wrong Answer

Solution code:
m = int(input())
def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]
x = make_divisors(360)

#最大公約数
def gcd(a,b):
    if(b>a):
        a,b=b,a
    i=b
    while i>0:
        if(a%i==0 and b%i==0):
            return i
        i-=1

#最小公倍数
def lcm(a,b):
    return int(a*b/gcd(a,b))

y = lcm(m,360)

print(y)
print(m)
print(x)
if m in x:
    print(360//m)
else:
    print(y//m)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(360//n)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(360/n)

Submission status: Wrong Answer

Solution code:
x = int(input())
for i in range(1, 360):
    if (x*i)%360 == 0:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360//x if 360%x == 0 else 360//x + 1)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 360 % X == 0:
    ans = 360 // X
else:
    ans = 360
print(ans)

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    ans = int(360/X)
    return ans

print(main())

Submission status: Wrong Answer

Solution code:
import sys
import math

X = int(sys.stdin.readline())
# a = 360 * n // X
gcd = math.gcd(360, X)
print((360 // gcd) * (X // gcd))

Submission status: Wrong Answer

Solution code:
X = int(input())

print(360//X)

Submission status: Wrong Answer

Solution code:
# import math
# import statistics
# import itertools
a=int(input())
#b,c=int(input()),int(input())
# c=[]
# for i in a:
#     c.append(int(i))
#e1,e2= map(int,input().split())
# f = list(map(int,input().split()))
#g = [input() for _ in range(e1)]


print(360//a)

Submission status: Wrong Answer

Solution code:
from math import gcd
x=int(input())
g=gcd(360,x)
print(360/g)

Submission status: Wrong Answer

Solution code:
from math import gcd
x=int(input())
g=gcd(x,360)
print(x//g)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 // X
    K = int(K)
    print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    K = int(K)
    print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) == K:
        K = int(K)
        print(K)
    else:
        K = int(K+1)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) == K:
        K = int(K)
        print(K)
    else:
        K = int(K)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) == K:
        K = int(K)
        print(K)
    else:
        K = int(int(K) + 1)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) == K:
        print(int(K))
    else:
        K = int(int(K) + 1)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) == K:
        print(K)
    else:
        K = int(K)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) < K:
        K = int(int(K) - 1)
        print(K)
    else:
        K = int(K)
        print(K)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 1 <= X <= 179:
    K = 360 / X
    if int(K) < K:
        K = int(int(K) + 1)
        print(K)
    else:
        K = int(K)
        print(K)

Submission status: Wrong Answer

Solution code:
X = input("请输入一个整数X:")
if X == int(X):
    if 1 <= X <= 179:
        K = 360 / X
        if int(K) < K:
            K = int(int(K) + 1)
            print(K)
        else:
            K = int(K)
            print(K)

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(int(K) - 1)
                print(K)
            else:
                K = int(K)
                print(K)

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(int(K) + 1)
                print(K)
            else:
                K = int(K)
                print(K)

Submission status: Wrong Answer

Solution code:
x=input("")
s = x.split(".")
if eval(x)>=1 and eval(x)<=179 and len(s) == 1 and 360%eval(x) == 0:
    print(int(360/eval(x)))
if eval(x)>=1 and eval(x)<=179 and len(s) == 1 and 360%eval(x) != 0:
    print(int(360 / eval(x))+1)

Submission status: Wrong Answer

Solution code:
class A():
    def times(X):
        if X == int(X):
            if 1<= X <= 179:
                K = 360/X
                if int(K) < K :
                    K = int(int(K) + 1)
                    print(K)
                    return K
                else:
                    K = int(K)
                    print(K)
                    return K
            else:
                print("please input another number")
        else:
            print("please input an integer")

Submission status: Wrong Answer

Solution code:
x=input("")
s = x.split(".")
if eval(x)>=1 and eval(x)<=179 and len(s) == 1:
    print(int(360/eval(x)))

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(int(K) + 1)
                print(K)
                return K
            else:
                K = int(K)
                print(K)
                return K
        else:
            print("please input another number")
    else:
        print("please input an intege")

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(K) + 1
                print(int(K))
            else:
                print(int(K))
        else:
            print("please input another number")
    else:
        print("please input an intege")

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(K) + 1
                print(int(K))
            else:
                print(int(K))

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(K) + 1
                print(K)
            else:
                print(int(K))

Submission status: Wrong Answer

Solution code:
def E(N,R):
    if int(N)==N and int(R)==R:
        if 1<= N <= 100 and 0<= R <= 4111:
            if N > 10:
                M =R
                print(M)
            else:
                K = 100 * (10 - N)
                M = R + K
                print(M)

Submission status: Wrong Answer

Solution code:
def times(X):
    if X == int(X):
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(K) + 1
                print(K)
            else:
                print(int(K))
        else:
            print("please input another number")
    else:
        print("please input an intege")

Submission status: Wrong Answer

Solution code:
def times(X):
    if int(X)/X == 1:
        if 1<= X <= 179:
            K = 360/X
            if int(K) < K :
                K = int(K) + 1
                print(K)
            else:
                print(int(K))
        else:
            print("please input another number")
    else:
        print("please input an integet")
times(90)

Submission status: Wrong Answer

Solution code:
def lcm(x, y):
   if x > y:
       greater = x
   else:
       greater = y
 
   while(True):
       if((greater % x == 0) and (greater % y == 0)):
           lcm = greater
           break
       greater += 1
 
   return lcm
x = 7
if 360%x == 0:
    print(int(360/x))
else :
    print(int(lcm(360,x)/x))

Submission status: Wrong Answer

Solution code:
x = input("")
for i in range(5):
    alist = list(map(int,x))
    result = sum(alist)
    x = str(result)

if result % 9 == 0 :
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1<= X <= 179:
        X = int(X)
        K = 360/X
        if int(K) < K :
            K = int(K) + 1
            print(K)
        else:
            print(int(K))
    else:
        print("please input another number")
times(90)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1<= X <= 179:
        X = int(X)
        K = 360/X
        print(int(K))
        return K
    else:
        print("please input another number")

times(90)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1<= X <= 179:
        X = int(X)
        K = 360/X
        print(int(K))
        return K
    else:
        print("please input another number")

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1<= X <= 179:
        K = 360/X
        print(int(K))
        return K
    else:
        print("please input an integer.")

times(90)
times(1)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1<= X <= 179:
        K = 360/X
        print(int(K))
        return K
    else:
        print("please input an integer.")

times(90)
times(180)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1< X < 179:
        K = 360/X
        print(K)
        return K
    else:
        print("please input an integer.")

times(90)
times(1)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1< X < 179:
        K = 360/X
        print(int(K))
        return K
    else:
        print("please input an integer.")

times(90)

Submission status: Wrong Answer

Solution code:
def times(X):
    if 1< X < 179:
        if X is int:
            K = 360/X
            print(K)
            return K
        else:
            print('please input integer')
    else:
        print("please input an integer.")

times(90)

Submission status: Wrong Answer

Solution code:
def times(X):
    x = int(X)
    1<= X <= 179
    K = 360/X
    print(int(K))
    return K
times(90)
times(1)

Submission status: Wrong Answer

Solution code:
def times(X):
    x = int(X)
    1<= X <= 179
    K = 360/X
    return K

Submission status: Wrong Answer

Solution code:
def times(x):
    x = int(x)
    if 1<= x <= 179:
        k = 360 / x
        print(k)
    return k

Submission status: Wrong Answer

Solution code:
def times(x):
    x = int(x)
    if 1<= x <= 179:
        k = 360 / x
        print(k)
    return k
s=times(1)

Submission status: Wrong Answer

Solution code:
def times(x):
    x = int(x)
    if 1<= x <= 179:
        k = 360 / x
        print(k)
s=times(1)

Submission status: Wrong Answer

Solution code:
def times(x):
    time = 360/x
    time = int(time)
    print(time)
    return time
s=times(1)

Submission status: Wrong Answer

Solution code:
def times(degree):
    time = 360/degree
    time = int(time)
    print(time)
    return time
s=times(1)

Submission status: Wrong Answer

Solution code:
X=int(input())
a=360%X
if a==0:
  print(a)
else:
  print(360)

Submission status: Wrong Answer

Solution code:
X = int(input())

if 360 % X == 0:
    print(360 // X)
    exit()
else:
    mod = 0
    cnt = 0
    while (360 + mod) % X != 0:
        cnt += (360 + mod) // X
        mod = (306 + mod) % X
    cnt += (360 + mod) // X

print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360//x)

Submission status: Wrong Answer

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
x = I()
print(360//x)

Submission status: Wrong Answer

Solution code:
import math
k = int(input())
if 360%k == 0:
    print(360//k)
else:
    print((360*k)//math.gcd(360,k))

Submission status: Wrong Answer

Solution code:
k = int(input())
if 360%k == 0:
    print(360//k)
else:
    print(360*k)

Submission status: Wrong Answer

Solution code:
k = int(input())
print(360//k)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 360 % X == 0:
  print(360 // X)
else:
  print(360 // X + 1)

Submission status: Wrong Answer

Solution code:
x=int(input())
print(int(360//x))

Submission status: Wrong Answer

Solution code:
import sys
import math
def input(): return sys.stdin.readline().rstrip()
def main():
    x = math.radians(int(input()))
    cur_x, cur_y = 0, 1
    cur_dig = math.pi/2
    ans = 1
    while cur_x**2+cur_y**2>0.0001:
        cur_dig += x 
        cur_x += math.cos(cur_dig)
        cur_y += math.sin(cur_dig) 
        ans += 1
    print(ans)

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math
def input(): return sys.stdin.readline().rstrip()
def main():
    x = math.radians(int(input()))
    cur_x, cur_y = 0, 1
    cur_dig = math.pi/2
    ans = 1
    while cur_x**2+cur_y**2>0.001:
        cur_dig += x 
        cur_x += math.cos(cur_dig)
        cur_y += math.sin(cur_dig) 
        ans += 1
    print(ans)

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math
def input(): return sys.stdin.readline().rstrip()
def main():
    x = math.radians(int(input()))
    cur_x, cur_y = 0, 1
    cur_dig = math.pi/2
    ans = 1
    while cur_x**2+cur_y**2>0.01:
        cur_dig += x 
        cur_x += math.cos(cur_dig)
        cur_y += math.sin(cur_dig) 
        ans += 1
    print(ans)

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math
def input(): return sys.stdin.readline().rstrip()
def main():
    x = math.radians(int(input()))
    cur_x, cur_y = 0, 1
    cur_dig = math.pi/2
    ans = 1
    while cur_x**2+cur_y**2>0.1:
        cur_dig += x 
        cur_x += math.cos(cur_dig)
        cur_y += math.sin(cur_dig) 
        ans += 1
    print(ans)

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
print(int(360 / (180 - int(input()))))

Submission status: Wrong Answer

Solution code:
print(int(360 / int(input())))

Submission status: Wrong Answer

Solution code:
X = int(input())
print(360 / X)

Submission status: Wrong Answer

Solution code:
k = list(map(int,input().split()))
print(int(360//k[0]))

Submission status: Wrong Answer

Solution code:
k = list(map(int,input().split()))
print(int(360/k[0]))

Submission status: Wrong Answer

Solution code:
k = int(input())
print(int(360/k))

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 360/n
print(int(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 360/n
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
print(360//x)

Submission status: Wrong Answer

Solution code:
print(360//(int(input())))

Submission status: Wrong Answer

Solution code:

import sys
import math
input = sys.stdin.readline

def inp():
    return(int(input()))

x = inp()
if x>180:
    print(360//(360-x))
else: print(360//x)

Submission status: Wrong Answer

Solution code:

import sys
import math
input = sys.stdin.readline

def inp():
    return(int(input()))

x = inp()
if x>180:
    print(360//(x-180))
else: print(360//x)

Submission status: Wrong Answer

Solution code:

import sys
input = sys.stdin.readline

def inp():
    return(int(input()))

x = inp()
print(360/x)

Submission status: Wrong Answer

Solution code:

import sys
input = sys.stdin.readline

def inp():
    return(int(input()))

x = inp()
print(360//x)

Submission status: Wrong Answer

Solution code:
x = int(input())
if 360%x != 0:
    print(360//x + 1)
else:print(int(360/x))

Submission status: Wrong Answer

Solution code:
n=int(input())
print(360//n)

Submission status: Wrong Answer

Solution code:
n=int(input())
print(360//1)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360//x if 360%x==0 else 360//x+1)

Submission status: Wrong Answer

Solution code:
import sys
import math
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

n = ini()
print(math.ceil(360 // n))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

n = ini()
print(360 // n)

Submission status: Wrong Answer

Solution code:
X = int(input())
for i in range(361):
  if i*X == 360:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
x=int(input())
print(int(360/x))

Submission status: Wrong Answer

Solution code:
x=int(input())
print(360/x)

Submission status: Wrong Answer

Solution code:
x = int(input())

print(360//x)

Submission status: Wrong Answer

Solution code:
N=int(input())
a=360//N
b=360%N
if b==0:
    print(a)
else:
    print(a+1)

Submission status: Wrong Answer

Solution code:
X = int(input())
K = 0
while ((X * K) % 360 != 0) and (K == 0):
  K += 1
print(K)

Submission status: Wrong Answer

Solution code:
x=int(input())
x=min(x,180-x)
X=x
k=1
while X%360!=0:
    k+=1
    X+=x
print(k)

Submission status: Wrong Answer

Solution code:
import numpy as np

X = int(input())
X_lcm = np.lcm(360, 360-X)
print(X_lcm // X)

Submission status: Wrong Answer

Solution code:
a=int(input())
x = 0
i = 1
while(1):
  x += a
  i += 1
  x %= 360
  if x:
    continue
  else:
    print(i)
    quit()

Submission status: Wrong Answer

Solution code:
x = int(input())
for i in range(1,1000):
    if 360*i%x == 0 :
        print(int(360/x))
        break
    else :
        print(3)
        pass

Submission status: Wrong Answer

Solution code:
q = int(input())
print(int(360/q))

Submission status: Wrong Answer

Solution code:
X = int(input())
print(int(360/X))

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
if 360 % a[0] == 0:
  print(int(360 / a[0]))
else:
  print(360)

Submission status: Wrong Answer

Solution code:
x  = int(input())
if x <=90:
  print(int(360/x))
else:
  print(int(180/(180-x)))

Submission status: Wrong Answer

Solution code:
x  = int(input())
print(int(360/min(x,180-x)))

Submission status: Wrong Answer

Solution code:
x  = int(input())
print(int(360/x))

Submission status: Wrong Answer

Solution code:
x  = int(input())
print(360/x)

Submission status: Wrong Answer

Solution code:
X = int(input())
n = 1
k = 0

k = 360//X
while(360*n % X != 0):
    k = 360*n//X
    n += 1

print(k)

Submission status: Wrong Answer

Solution code:
X = int(input())
W = 360 + (X - 1)
print(W // X)

Submission status: Wrong Answer

Solution code:
x  = int(input())
print(360//(180-x))

Submission status: Wrong Answer

Solution code:
x  = int(input())
if 360 % x == 0:
	print(360//x)
else:
	print((360//x)*10)

Submission status: Wrong Answer

Solution code:
x  = int(input())
if 360 % x == 0:
	print(360//x)
else:
	print((360//x)*5)

Submission status: Wrong Answer

Solution code:
x  = int(input())
if 360 % x == 0:
	print(360//x)
print((360//x)*5)

Submission status: Wrong Answer

Solution code:
x  = int(input())
print(360//x)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360 // x)

Submission status: Wrong Answer

Solution code:
x = int(input())
x = 180 - x
y = 360
while y % x != 0:
  y += 360
print(y // x)

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    print(360/X)
main()

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    print(360//X)
main()

Submission status: Wrong Answer

Solution code:
import sys

X = int(input())

if 360 % X == 0:
    print(360 // X)
else:
    print(360)

Submission status: Wrong Answer

Solution code:
X = int(input())
print(int(360 / X))

Submission status: Wrong Answer

Solution code:
X = int(input())
print(360 / X)

Submission status: Wrong Answer

Solution code:
r = int(input())
print(360 / r)

Submission status: Wrong Answer

Solution code:
X = int(input())

num = 360 / X
print(int(num))

Submission status: Wrong Answer

Solution code:
X = int(input())

num = int(360) / X
print(num)

Submission status: Wrong Answer

Solution code:
X = int(input())

num = 360 / X
print(num)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import math
import numpy as np
#N = int(input())
#A = list(map(int,input().split()))
x = int(input())
#x, y = map(int,input().split())
print(math.ceil(360/x))

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import math
import numpy as np
#N = int(input())
#A = list(map(int,input().split()))
x = int(input())
#x, y = map(int,input().split())
print(360//x)

Submission status: Wrong Answer

Solution code:
#  =========     /\       /|    |====/|
#      |        /  \       |    |   / |
#      |       /____\      |    |  /  |
#      |      /      \     |    | /   |
#  ========= /        \  =====  |/====|  
#  code

def main():
    x = int(input())
    ans = 360 // x
    print(ans)
    return

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1, 180):
  if (int(360*i) % n ==0) :
      print(i)
      exit(0)

Submission status: Wrong Answer

Solution code:
import math
N= int(input())
if 360%N==0:
  print(int(360/N))
elif 360%N!=0:
  a = math.gcd(360,N)
  print(360*int(N/a))

Submission status: Wrong Answer

Solution code:
N= int(input())
print(int(360/N))

Submission status: Wrong Answer

Solution code:
X = int(input())
print(360//X)

Submission status: Wrong Answer

Solution code:
X=int(input())
i=1
while True:
  X=X*i
  if X%360==0:
    print(i)
    break
  i+=1

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,361):
  if n**i%360==0:
    print(i)

Submission status: Wrong Answer

Solution code:
X=int(input())
K=0
a=0
while True:
  a+=X
  K+=1
  if K%360==0:
    break
print(K)

Submission status: Wrong Answer

Solution code:
x=int(input())
if(360%x==0):
    print(int(360/x))
else:
    print(int(360/(180-x)))

Submission status: Wrong Answer

Solution code:
x=int(input())
if(360%x==0):
    print(int(360/x))

Submission status: Wrong Answer

Solution code:
x=int(input())
if(360%x==0):
  print(360/x)

Submission status: Wrong Answer

Solution code:
x=int(input())
if(360%x==0):
  print(360//x)

Submission status: Wrong Answer

Solution code:
X=int(input())
import math
print(360*X//math.gcd(360,X))

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
g = math.gcd(360, X)
print(g // X)

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
g = math.gcd(360, X)
print(X*360//g)

Submission status: Wrong Answer

Solution code:
X = int(input())
if 360 % X == 0:
  print(360//X)
else:
  print(360)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(360//n)

Submission status: Wrong Answer

Solution code:
n = int(input())
res = 360 / n
if res != int(res):
    res *= 10**(len(str(res).split(".")[1]))
print(int(res))

Submission status: Wrong Answer

Solution code:
print(360//int(input()))

Submission status: Wrong Answer

Solution code:
degree = int(input())
need = 360 / degree
print(int(need))

Submission status: Wrong Answer

Solution code:
degree = int(input())
need = 360 / degree
print(need)

Submission status: Wrong Answer

Solution code:
x=int(input())
i=0
while True:
  360*i%x!=0
  i+=1
  if 360*i%x==0:
    break
k=360*i/x
print(k)

Submission status: Wrong Answer

Solution code:
a = input()
b = 360/int(a)
print(b)

Submission status: Wrong Answer

Solution code:
n1=input()
n=int(n1)
a=360/n
print(round(a))




#if __name__ == '__main__':

Submission status: Wrong Answer

Solution code:
x=int(input())
a=360
n=a//x
print(n)

Submission status: Wrong Answer

Solution code:
import math
print(math.ceil(int(input())%360))

Submission status: Wrong Answer

Solution code:
print(360/int(input()))

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360/x)

Submission status: Wrong Answer

Solution code:
s= int(input())
print(360//s)

Submission status: Wrong Answer

Solution code:
from math import gcd
x = int(input())
print(360*gcd(x,360)//x)

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    if 360 % X == 0:
        print(360 // X)
    else:
        print(360)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    print(0--360//X)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
X = int(input())
i = 1

while (360*i) % X != 0:
  i += 1
print(i)

Submission status: Wrong Answer

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    x = int(readline())

    for i in range(1, 361):
        if ((180 - x) * i) % 360 == 0:
            return print(i)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = int(input())
if(x>179):
 k =int(360/x)%360 
 if k == 0:
  print(int(360/x))

Submission status: Wrong Answer

Solution code:
x = int(input())
if(x>179):
 print(int(360/x))
else:
 print(int(x)*360)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(int(360/x))

Submission status: Wrong Answer

Solution code:
n = int(input())
if 360%n:
    print(360//(360%n))
else:
    print(360//n)

Submission status: Wrong Answer

Solution code:
X = int(input())
print(-(-360//X))

Submission status: Wrong Answer

Solution code:
try:
  n=int(input())
  print(360//n)
except:
  pass

Submission status: Wrong Answer

Solution code:
# import matplotlib.pyplot as plt
import math
 
def lcm(x, y):
   if x > y:
       z = x
   else:
       z = y
 
   while(True):
       if((z % x == 0) and (z % y == 0)):
           lcm = z
           break
       z += 1
 
   return lcm

X = int(input())
print(lcm(X, 360) / X)

Submission status: Wrong Answer

Solution code:
# import matplotlib.pyplot as plt
import math

def lcm(x, y):
   if x > y:
       z = x
   else:
       z = y

   while(True):
       if((z % x == 0) and (z % y == 0)):
           lcm = z
           break
       z += 1

   return lcm

def squaredDistance(a, b):
  return (a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2

X = int(input())
print(lcm(X, 360) / X)

Submission status: Wrong Answer

Solution code:
# import matplotlib.pyplot as plt
import math

def squaredDistance(a, b):
  return (a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2

angle = 90
X = int(input())
iter = 0
current = [0, 0]
previous = current

while (iter == 0 or squaredDistance(current, [0, 0]) > 0.001):
  if (iter > 500):
    break

  dir = [math.cos(math.radians(angle)), math.sin(math.radians(angle))]
  current = [current[0] + dir[0], current[1] + dir[1]]
  angle = (angle + X) % 360
  # plt.plot([previous[0], current[0]], [previous[1], current[1]])
  previous = current
  iter = iter + 1

# plt.show()

print(iter)

Submission status: Wrong Answer

Solution code:
import math
x=int(input())
if 360%x==0:
    print(360//x)
else:
    print(x * 360 // math.gcd(x, 360))

Submission status: Wrong Answer

Solution code:
x=int(input(""))
import math
a=math.gcd(360,x)
print(int(360*x/a/a))

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
step = 360//n
print(step)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(360/x)

Submission status: Wrong Answer

Solution code:
a = int(input())
print(int(360/a))

Submission status: Wrong Answer

Solution code:
t=int(input())

print(int(360/t))

Submission status: Wrong Answer

Solution code:
def lcm(x, y):
   if x > y:
       greater = x
   else:
       greater = y
 
   while(True):
       if((greater % x == 0) and (greater % y == 0)):
           lcm = greater
           break
       greater += 1
 
   return lcm
 
 
 
num1 = int(input())
a=lcm(num1,360)
b=a/360
print(int(b))

Submission status: Wrong Answer

Solution code:
def lcm(x, y):
   if x > y:
       greater = x
   else:
       greater = y
 
   while(True):
       if((greater % x == 0) and (greater % y == 0)):
           lcm = greater
           break
       greater += 1
 
   return lcm
 
 

num1 = int(input())
a=lcm(num1,360)
b=a/360
print(b)

Submission status: Wrong Answer

Solution code:
x = int(input())
if 360%x == 0: print(360//x)
else: print(360)

Submission status: Wrong Answer

Solution code:
from math import gcd
N = int(input())
print(N // gcd(360, N))

Submission status: Wrong Answer

Solution code:
x = int(input())
for i in range(1,1000):
  if (360*i)%x == 0:
    print((360*i)//x)

Submission status: Wrong Answer

Solution code:
x=int(input())

if 360%x==0:
  print(360//x)
else:
  print(360//x+1)

Submission status: Wrong Answer

Solution code:
def solve(x):
    k = 0
    while k*x % 360 != 0:
        k += 1
    return k
    
x = int(input())
print(solve(x))

Submission status: Wrong Answer

Solution code:
x = int(input())
for i in range(100000):
  if x * i % 360 == 0:
    print(i)
    exit()

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
for i in range(1,361):
    if x*i >= 360:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
print(math.ceil(360/x))

Submission status: Wrong Answer

Solution code:
from math import gcd

X = int(input())

print(360//gcd(X,180))