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

22193번 - Multiply 서브태스크다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 128 MB93575611530264.991%

문제

Write a program that computes a product of two non-negative integers A and B. The integers are represented in decimal notation and have N and M digits, respectively.

입력

The first line contains the lengths N and M, separated by a space. A is given on the second and B on the third line. The numbers will not have leading zeros.

출력

Output the product of A and B without leading zeros.

제한

  • 1 ≤ N, M ≤ 50 000

서브태스크

번호배점제한
120

N, M ≤ 4

220

N, M ≤ 9

330

N, M ≤ 5 000

430

No additional constraints

예제 입력 1

3 4
123
4567

예제 출력 1

561741

예제 입력 2

3 1
100
0

예제 출력 2

0

힌트

출처

Olympiad > Central European Olympiad in Informatics > CEOI 2017 > Practice 2번

채점 및 기타 정보

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

출처

대학교 대회

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

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