> For the complete documentation index, see [llms.txt](https://xtecna.gitbook.io/solucoes-da-beecrowd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xtecna.gitbook.io/solucoes-da-beecrowd/iniciante/untitled.md).

# 1001 - Extremamente Básico

## Descrição

{% embed url="<https://www.urionlinejudge.com.br/judge/pt/problems/view/1001>" %}

## Solução

Um problema bem simples que envolve ler dois valores e imprimir a soma dos dois valores lidos. Nesta página do URI Online Judge ele oferece as soluções deste problema para diversas linguagens:

{% embed url="<https://www.urionlinejudge.com.br/judge/pt/faqs/about/examples>" %}

A diferença entre os exemplos apresentados acima e os apresentados abaixo é que lá tem em muito mais linguagens do que aqui e que lá eles levam em consideração a variável X, que não é necessária, mas que é pode ser bom incluir para fins educativos.

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

```c
#include <stdio.h>

int main(){
    int A, B;

    scanf("%d\n%d", &A, &B);
    
    printf("X = %d\n", A + B);

    return 0;
}
```

{% endtab %}

{% tab title="C++17" %}

```cpp
#include <iostream>

using namespace std;

int main(){
    int A, B;

    cin >> A >> B;
    
    cout << "X = " << A + B << endl;

    return 0;
}
```

{% endtab %}

{% tab title="JavaScript 12.18" %}

```javascript
let input = require("fs").readFileSync("/dev/stdin", "utf8");
let lines = input.split("\n");

A = parseInt(lines.shift());
B = parseInt(lines.shift());
console.log(`X = ${A + B}`);
```

{% endtab %}

{% tab title="Python 3.9" %}

```python
A = int(input())
B = int(input())

print(f"X = {A + B}")
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xtecna.gitbook.io/solucoes-da-beecrowd/iniciante/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
