시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB43092260211555.967%

문제

Given two non-negative integers $A$ and $B$, compute $A + B$.

구현 상세

You should implement the following procedure:

int sum(int A, int B)
  • $A$, $B$: two non-negative integers.
  • The procedure should return $A + B$.
  • The procedure is called exactly once.

제한

  • $0 ≤ A ≤ 100$
  • $0 ≤ B ≤ 100$

서브태스크

번호배점제한
120

$A ≤ 10$; $B ≤ 10$

230

$B = 0$

350

No additional constraints.

예제 1

Consider the following call:

sum(1, 1)

In this case $A = B = 1$. Hence, the procedure should return $1 + 1 = 2$.

예제 2

Consider the following call:

sum(2, 3)

In this case $A = 2$ and $B = 3$. The correct return value is $5$.

샘플 그레이더

Input format:

A B

Output format:

R

Here, $R$ is the value returned by sum.

첨부

제출할 수 있는 언어

C++17, C++20, C++17 (Clang), C++20 (Clang)

채점 및 기타 정보

  • 예제는 채점하지 않는다.