Logo
(追記) (追記ここまで)

32260번 - A + B 서브태스크다국어언어 제한함수 구현

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

문제

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.

첨부

출처

Olympiad > International Olympiad in Informatics > IOI 2024 > Practice 1번

제출할 수 있는 언어

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

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /