From 0293370c8994ebc230ff746e65460d5c0e8318b8 Mon Sep 17 00:00:00 2001 From: vishnu2909200 <100519914+vishnu2909200@users.noreply.github.com> Date: Sun, 27 Feb 2022 18:31:46 +0530 Subject: [PATCH] Create vishnu_SolutionName_Ps-1 --- .../Solution/vishnu_SolutionName_Ps-1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Problem Statement-1/Solution/vishnu_SolutionName_Ps-1 diff --git a/Problem Statement-1/Solution/vishnu_SolutionName_Ps-1 b/Problem Statement-1/Solution/vishnu_SolutionName_Ps-1 new file mode 100644 index 0000000..71ca28d --- /dev/null +++ b/Problem Statement-1/Solution/vishnu_SolutionName_Ps-1 @@ -0,0 +1,19 @@ +#python 3 +(t,s,n,a,b,k)=input().split(" ") +t=int(t) +s=int(s) +n=int(n) +a=int(a) +b=int(b) +k=int(k) +f=0 +for i in range(t): + for i in range (s,n+1): + if i%a==0 and i%b!=0: + f+=1 + elif i%b==0 and i%a!=0: + f+=1 +if f==k or f>=k: + print("win") +else: + print("lose")