From 327b21e05adf4c36016574a97c5a185b47c9dca4 Mon Sep 17 00:00:00 2001
From: saketsuman07 <64769358+saketsuman07@users.noreply.github.com>
Date: Mon, 4 May 2020 12:29:11 +0530
Subject: [PATCH] Update Compare_the_Triplets.py
---
.../Compare_the_Triplets.py | 43 ++++++-------------
1 file changed, 12 insertions(+), 31 deletions(-)
diff --git a/HackerRank-Compare the Triplets/Compare_the_Triplets.py b/HackerRank-Compare the Triplets/Compare_the_Triplets.py
index 223a2d3..01294b7 100644
--- a/HackerRank-Compare the Triplets/Compare_the_Triplets.py
+++ b/HackerRank-Compare the Triplets/Compare_the_Triplets.py
@@ -1,32 +1,13 @@
-#!/bin/python3
+a=list(map(int,input().split()))
+b=list(map(int,input().split()))
+bob=0
+alice=0
+for i in range(3):
+ if a[i]>b[i]:
+ alice=alice+1
+ elif a[i]b[i]):
- alice+=1
- elif(a[i]
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: