Abdul WaheedComputer Science and Engineering undergraduate from New Delhi who loves coding and football. · 2y
//works perfectly
#include<bits/stdc++.h>
#define endl "\n"
int main(){
int N, H;
std::cin >> N >> H;
bool isCraneLoaded = false;
int stack[N], cranePosition, command;
cranePosition = 0;
for(unsigned int i = 0; i < N; i++)
std::cin >> stack[i];
// comommad
// 1. Move left
Read more… (216 words)