#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
long long k;
cin >> n >> k;
vector<long long> pref(n + 1, 0);
for (int i = 1; i <= n; i++) {
long long x;
cin >> x;
pref[i] = pref[i - 1] + x;
}
int ans = n;
for (int i = 0; i < n; i++) {
auto it = lower_bound(
pref.begin() + i + 1,
pref.end(),
pref[i] + k
#include ‹iostream>
using namespace std;
int main(){
int n;
cin >>n;
int a[100000];
for (int i=0; i‹n; i++)
cin ››a[i];
int x;
cin >>x;
int 1=0, r=n-1;
while (l<=r){
int m=(1+r)/2;
if (a[m]==x) {
cout «"Yes";
return 0;
}
if (a [m]<x)
l=m+1;
else
r=m-1;
}
cout «"No";
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n, q;
cin >> n >> q;
int a[100];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
while (
Q.1.Explain Draught system.
Ans:- Draught System in Thermal Power Plant:-
1)Draught is the pressure difference that causes the flow of air into the furnace and flue gases out of the boiler.
2)Its main purpose is to supply sufficient oxygen for proper combustion of fuel and remove the resulting flue gases.
3)Natural Draught: It is produced by a tall chimney due to the difference in density between hot flue gases and outside air.
4)Forced Draught: A forced-draught (FD) fan forces fresh air into
import altair as alt
chart = (
alt.Chart(data).mark_...()
.encode(x=..., y=..., color=...)
.transform_...(...).properties(...)
.interactive()
)
mark_bar bars / aggregated comparison
mark_line trends over an ordered axis
mark_circle scatter plots
mark_area filled trends / totals
mark_rect heat maps
mark_arc pie or donut charts
mark_boxplot distribution summaries
mark_geoshape
| Term | Remember it as |
|---|---|
| Common law | Rules developed through court decisions |
| Statutory law | Written laws passed by a legislature |
| Federal / state law | Which level of government the law comes from |
| Plaintiff / defendant | Person suing / person being sued |
| Civil / criminal | A claim for a remedy, often damages / government prosecution for a crime |
| Law / ethics | What is legally required / what someone believes is right |
Proof standards: Civil case = preponderance of...
1.A Computer is an electronic machine that can store, process, & display data. It helps in performing different tasks like calculations, writing, & browsing.
2. System software is a type of software that helps the computer work properly. It controls & manages the hardware & basic functions, like the operating system.
3. Application software is a program designed 2 help users perform specific tasks, like writing documents, playing games, or editing photos.
4. Free & open software
Regression modeling is a statistical technique used to study the relationship between a dependent variable and one or more independent variables. It is mainly used for prediction and estimating relationships between variables.
It uses one independent variable.
Y=β0+β1X+ϵ
where: