# Day 1 : Mathematics

## **Problems**

[**M and N**](https://practice.geeksforgeeks.org/contest-problem/m-and-n5047/0/)

**Solved on: April 10th 2020**

{% tabs %}
{% tab title="Python" %}

```python
t=int(input())
for i in range(t):
    m, n=map(int, input().split())
    if len(str(m+n)) == len(str(n)):
        print (n)
    else:
        print (m+n)

```

{% endtab %}
{% endtabs %}

[**Triangle and Square**](https://practice.geeksforgeeks.org/contest-problem/triangle-and-square/0/)

**Solved on: April 10th 2020**

{% tabs %}
{% tab title="Python" %}

```python
t=int(input())
for i in range(t):
    n=int(input())
    n=(n-2)//2
    print((n*(n+1))//2)

```

{% endtab %}
{% endtabs %}

[**Satisfy the condition**](https://practice.geeksforgeeks.org/contest-problem/satisfy-the-condition/0/)

{% tabs %}
{% tab title="Python" %}

```python


```

{% endtab %}
{% endtabs %}
