Skip to content

Instantly share code, notes, and snippets.

View Svastikkka's full-sized avatar
🏛️
Working from Gift City

Manshu Sharma Svastikkka

🏛️
Working from Gift City
View GitHub Profile
t=int(input())
for i in range(t):
n,k=map(int,input().split())
arr=list(map(int,input().split()))
res=sorted(arr)
largest_divisor=0
for i in res:
# 3
if k % i == 0:
import math
t=int(input())
for i in range(t):
x,y=map(int,input().split())
chef=round(math.ceil(x/9))
raick=round(math.ceil(y/9))
if raick<chef:
print(1,"",raick)
elif raick==chef:
class Node:
def __init__(self,data):
self.data=data
self.next=None
def LinkedList(arr):
head=None
tail=None
if len(arr)<1:
return None
class Node:
def __init__(self,data):
self.data=data
self.next=None
def LinkedList(arr):
head=None
tail=None
if len(arr)<1:
return
class Node:
def __init__(self,data):
self.data=data
self.next=None
def LinkedList(arr):
head=None
tail=None
if len(arr)<1:
return
else:
t=int(input())
for i in range(t):
h,p=map(int,input().split())
while h>0:
h = h - p
p = p // 2
if p>h:
print(1)
break
elif p==0 and h!=0:
n=int(input())
n0=int(input())
s0 = input()
a0=s0.count("G")
b0=s0.count("C")
arr=[]
for i in range(n):
n1=int(input())
s1=input()
a1=s1.count("G")
class Node:
def __init__(self, data):
self.data = data
self.next = None
def LinkedLists(arr):
head = None
tail = None
if len(arr) < 1:
class Node:
def __init__(self,data):
self.data=data
self.next=None
def LinkedList(arr):
head=None
tail=None
if len(arr)<1:
return
class Node:
def __init__(self, data):
self.data = data
self.next = None
def LinkedLists(arr):
head = None
tail = None
if len(arr) < 1: