> For the complete documentation index, see [llms.txt](https://gopavasanth.gitbook.io/code/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gopavasanth.gitbook.io/code/geeksforgeeks-special-21/day-1-mathematics.md).

# Day 1 : Mathematics

https\://practice.geeksforgeeks.org/contest/special-21-day-1-mathematics/problems/

## **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 %}
