N=int(input())
K=int(input())
price=list(map(int,input().split()))
vol=list(map(int,input().split()))
maxvol=0
volu=0
maxvol=max(vol)
for i in range(0,N):
if (maxvol==vol[i] and price[i]<=K):
K=K-price[i]
volu=maxvol
for i in range(0,N):
for j in range(i+1,N+1):
if (price[i]<=K and price[i]==price[j]):
if (vol[i]>vol[j]):
volu=volu+vol[i]
K=K-price[i]
else:
volu=volu+vol[j]
K=K-price[j]
elif (price[i]<=K and price[i]!=price[j]):
K=K-price[i]
volu=volu+vol[i]
print(volu)
Vijay Industrial code β
Stream : Python π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
K=int(input())
price=list(map(int,input().split()))
vol=list(map(int,input().split()))
maxvol=0
volu=0
maxvol=max(vol)
for i in range(0,N):
if (maxvol==vol[i] and price[i]<=K):
K=K-price[i]
volu=maxvol
for i in range(0,N):
for j in range(i+1,N+1):
if (price[i]<=K and price[i]==price[j]):
if (vol[i]>vol[j]):
volu=volu+vol[i]
K=K-price[i]
else:
volu=volu+vol[j]
K=K-price[j]
elif (price[i]<=K and price[i]!=price[j]):
K=K-price[i]
volu=volu+vol[i]
print(volu)
Vijay Industrial code β
Stream : Python π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
Vijay Industrial code β
Stream : Python π―
ππ Telegram:
https://t.me/exam_cell_solutions_rb
https://t.me/exam_cell_solutions_rb
Stream : Python π―
ππ Telegram:
https://t.me/exam_cell_solutions_rb
https://t.me/exam_cell_solutions_rb
N=int(input())
K=int(input())
price=list(map(int,input().split()))
vol=list(map(int,input().split()))
maxvol=0
volu=0
maxvol=max(vol)
for i in range(0,N):
if (maxvol==vol[i] and price[i]<=K):
K=K-price[i]
volu=maxvol
for i in range(0,N):
for j in range(i+1,N+1):
if (price[i]<=K and price[i]==price[j]):
if (vol[i]>vol[j]):
volu=volu+vol[i]
K=K-price[i]
else:
volu=volu+vol[j]
K=K-price[j]
elif (price[i]<=K and price[i]!=price[j]):
K=K-price[i]
volu=volu+vol[i]
print(volu)
Vijay Industrial code β
Stream : Python π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
K=int(input())
price=list(map(int,input().split()))
vol=list(map(int,input().split()))
maxvol=0
volu=0
maxvol=max(vol)
for i in range(0,N):
if (maxvol==vol[i] and price[i]<=K):
K=K-price[i]
volu=maxvol
for i in range(0,N):
for j in range(i+1,N+1):
if (price[i]<=K and price[i]==price[j]):
if (vol[i]>vol[j]):
volu=volu+vol[i]
K=K-price[i]
else:
volu=volu+vol[j]
K=K-price[j]
elif (price[i]<=K and price[i]!=price[j]):
K=K-price[i]
volu=volu+vol[i]
print(volu)
Vijay Industrial code β
Stream : Python π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
π5
Channel name was changed to Β«TCS NQT 21TH || TCS IRA 22ND JAVA/ PYTHON || TCS PRA JAVA/ PYTHON || IEVOLVE ANSWERSΒ»
Channel name was changed to Β«TCS NQT 21st || TCS IRA 22ND JAVA/ PYTHON || TCS PRA JAVA/ PYTHON || IEVOLVE ANSWERSΒ»
n=int(input())
k=int(input())
mon=[]
for i in range(n):
mon.append(int(input()))
mi=min(mon)
ma=max(mon)
ma=ma-k
mi=mi+k
diff=ma-mi
print(diff)
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
k=int(input())
mon=[]
for i in range(n):
mon.append(int(input()))
mi=min(mon)
ma=max(mon)
ma=ma-k
mi=mi+k
diff=ma-mi
print(diff)
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
π1
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
( Line 5 :- for i in range(a):
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
Readington Code β
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
Stream :Python 3π―
ππ Telegram:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β β Share β β share β β share
π2
TCS NQT AUGUST 21st 2Pm slot β
β
π―
Aptitude π―π―
1.4
2.0
3.96,50
4.1
5.293.75
6.182.82
7.7,05,600
8.9300
9.73
10.9,33,308
11.A/16,BC/5
12.120
13.13 days
14.5.5 hours
15.2hrs 30mins
16.154
17.13
18.33
19.44
20.28
ππ Telegram,:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β Keep sharing our channel screenshot in large gorups for complete help β
Aptitude π―π―
1.4
2.0
3.96,50
4.1
5.293.75
6.182.82
7.7,05,600
8.9300
9.73
10.9,33,308
11.A/16,BC/5
12.120
13.13 days
14.5.5 hours
15.2hrs 30mins
16.154
17.13
18.33
19.44
20.28
ππ Telegram,:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β Keep sharing our channel screenshot in large gorups for complete help β
π4π₯1π₯°1π1
Share our channel screenshot in large groups ππ»ππ»ππ»
TCS NQT AUGUST 21st 2Pm slot β
β
π―
VERBEL π―
1.reach home
2.from the
3.the creation
4. Roams
5.bdca
6.nobel art
7.line gold ....
8.fallen prey
9.3142
10. 3421
11.241
12.D
13.profound C
14.C
15.The scary
16.stoic
17.EDCBA
18.RQ
19.C
20.B
21.RST
22.22.Concrete results in riding temp
24.
ππ Telegram,:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β Keep sharing our channel screenshot in large gorups for complete help β
VERBEL π―
1.reach home
2.from the
3.the creation
4. Roams
5.bdca
6.nobel art
7.line gold ....
8.fallen prey
9.3142
10. 3421
11.241
12.D
13.profound C
14.C
15.The scary
16.stoic
17.EDCBA
18.RQ
19.C
20.B
21.RST
22.22.Concrete results in riding temp
24.
ππ Telegram,:
https://t.me/tcs_pra_java_python
https://t.me/tcs_pra_java_python
β Keep sharing our channel screenshot in large gorups for complete help β
π3β€1π₯°1
TCS PRA 6th September || JAVA/ PYTHON || IEVOLVE ANSWERS pinned Β«TCS NQT AUGUST 21st 2Pm slot β
β
π― VERBEL π― 1.reach home 2.from the 3.the creation 4. Roams 5.bdca 6.nobel art 7.line gold .... 8.fallen prey 9.3142 10. 3421 11.241 12.D 13.profound C 14.C 15.The scary 16.stoic 17.EDCBA 18.RQ 19.C 20.B 21.RSTβ¦Β»