How to nearly similar rectangles hackerrank solution (C++ Programming Language)
1 Answer(s) Available
Answer # 1 #
1
#include
2
#define ll long long
3
using namespace std;
4
ll combinations(ll n)
5
{
6
ll count=1;
7
if(n<2)
8
return 0;
9
else
10
{
11
for(ll i=1;i<=2;i++)
12
{
13
count=count*n--;
14
count=count/i;
15
}
16
}
17
return count;
18
}
Source: w3schools
More Questions
- What is the treatment for rabies in humans?
- How to merge two aws certification accounts?
- What is agent assisted transfer?
- How to add gwr tickets to apple wallet?
- How to update zjailbreak for free?
- How to stop phonepe emails?
- How to Call to undefined method Illuminate\Session\Store::set() (PHP Scripting Language)
- How to hack pin up aviator?
- What is the Ebay get discount coupon code for Good Froend Sandals & Floaters (For Men)?
- How to update airtel email id?