allcoding1
27.7K subscribers
2.2K photos
2 videos
74 files
851 links
Download Telegram
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
#define max_v 25
bool f(double A,double B,double a,double b)
{
    double d=sqrt(a*a+b*b);
    double a1=asin(A/d);
    double a2=asin(b/d)*2.0;
    double h=cos(a1-a2)*d;
    if(B>h)
        return true;
    else
        return false;
}
int main()
{
    int t;
    bool flag;
    cin >> t;
    while(t--)
    {
        double A,B,a,b;
        cin >> A >> B >> a >> b;
        if(A<B)
            swap(A,B);
        if(a<b)
            swap(a,b);
        if(A>a&&B>b)
        {
            flag=true;
        }
        else if(A*B<=a*b||b>=B)
        {
            flag=false;
        }else
        {
            flag=f(A,B,a,b);
        }
        if(flag)
        {
            cout << "Escape is possible." << endl;

        }else
        {
            cout << "Box cannot be dropped." << endl;

        }
    }
    return 0;
}

INFAthon 4.0

Telegram:- @allcoding1
👍3🔥1
Diverse Deputations
Python 3

Telegram:- @allcoding1
👍2
Accenture exam Answer 2/4/24
@allcoding1

1) I got sick, I have _

As) an

2) A) but everyone
B) government
C) an should
D) global..

As) DBAC


3) ocean : shallow
As) infinite

4) I comb my hair....

As) I used to

5) antonym word " ACCURATE "

As) invalid


6) Continue

As) prolong


7) we felt____missing the farewell party

As) didn't feel good

@allcoding1

8) horizontal bar represent

As) date input/output

9) charvi is the mother of sara...

As) sister in law


10) by the time we arrived they____ (to leave)

As) had left


11) 1) it is possible to determine....
2) no other mobile brand....

As) both conclusion follow



Telegram:- @allcoding1
👍10
F
Cat : feline
Husband
Only conclusion I follow
Near
Reopening ans👇
20
22
👍1
Small program
3
5
👍1
40
1
int num1, num2;
    cin >> num1 >> num2;
    int sum = num1 + num2;
    cout << num1 << " + " << num2 << " = " << sum << endl;


C++

Telegram:- @allcoding1
👍1🔥1
#include <iostream>
using namespace std;

int main() {
    int num1, num2;
    cout << "Enter two numbers: ";
    cin >> num1 >> num2;
   
    int sum = num1 + num2;
    cout << num1 << " + " << num2 << " = " << sum;
   
    return 0;
}


C++

Telegram:- @allcoding1
👍3
N = int(input())

for i in range(1, 2 * N):
    if i <= N:
        spaces = 2 * N - 2 * i
        stars = i
    else:
        spaces = 2 * i - 2 * N
        stars = 2 * N - i
    
    print("*" * stars + " " * spaces + "*" * stars)

Butterfly fly
Accenture

@allcoding1_official
🔥1