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

18398번 - HOMWRK 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB32112264216772.840%

문제

In one of the beautiful cities of Afghanistan two sisters are going to program a simple game to help them solve their mathematics homework. Their homework asks them to calculate the sum and multiplication of two numbers. Your task is to help them to build a simple program for their homework.

입력

First line contains the number of test cases (T).

T test cases follow. For each test case, the first line represents the number of problems. Next N lines contains two integer numbers Ai, Bi.

출력

For every input expecting two integer numbers, first one represents the addition of two given numbers and second represents the multiplication separated by space.

제한

  • 1 ≤ T ≤ 10
  • 1 ≤ N ≤ 50
  • 0 ≤ Ai, Bi ≤ 20000

예제 입력 1

1
2
20 30
40 60

예제 출력 1

50 600
100 2400

힌트

출처

ICPC > Regionals > Asia West Continent > Afghanistan > ICPC Asia Kabul Regional Contest 2019 7번

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

출처

대학교 대회

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

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