페이지를 불러오는 중…
해결한 사람
1
명
정답률
14.29
%
시간 제한
1000
ms
메모리 제한
2048
MB
Given two non-negative integers and , compute .
You should implement the following procedure:
int sum(int A, int B)
| 번호 | 배점 | 제한 |
|---|---|---|
| 1 | 20 | ; |
| 2 | 30 | |
| 3 | 50 | No additional constraints. |
Consider the following call:
sum(1, 1)
In this case . Hence, the procedure should return .
Consider the following call:
sum(2, 3)
In this case and . The correct return value is .
Input format:
A B
Output format:
R
Here, is the value returned by sum.
A B
R
Here, is the value returned by sum.
1 1
2
2 3
5
International Olympiad in Informatics (IOI) 2024, official task package; Korean translation by Reporch.
Reporch에서 한국어 번역, 수식 표기, 이미지 호스팅 및 형식을 수정했습니다.
로그인 상태를 확인하는 중입니다.