Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- 시작해요 언리얼 2022
- Algorithm
- dynamic
- Programming
- 오류
- 재귀
- Unity
- Basic
- w3school
- Material
- c++
- dfs
- W3Schools
- Tutorial
- guide
- 파이썬
- UE5
- Class
- DP
- parameter
- String
- 문제풀이
- 백준
- Unreal Engine 5
- 기초
- C#
- python
- 프로그래밍
- github
- loop
Archives
- Today
- Total
행복한 개구리
(C++/Python/C#) 백준 10998번 - A*B 본문


Python
A, B = map(int, input().split())
print(A*B)
C++
#include <iostream>
using namespace std;
int main() {
int A;
int B;
cin >> A, cin >> B;
cout << A * B;
}
C#
string[] list = Console.ReadLine().Split();
Console.WriteLine(int.Parse(list[0]) * int.Parse(list[1]));
C#에선 입력받는 ReadLine이 String형식 고정이므로 우선 입력받은 뒤에 int.Parse() 로 형변환 해줍니다.
'Algorithm > BaekJoon' 카테고리의 다른 글
| (Python/C#/C++) 백준 10869번 - 사칙연산 (0) | 2022.07.08 |
|---|---|
| (C++/C#/Python) 백준 1008번 - A/B (0) | 2022.07.08 |
| (C++/Python) 백준 1001번 - A-B (0) | 2022.07.08 |
| (C++/Python) 백준 1000번 - A+B (0) | 2022.07.08 |
| (C++ / Python) 백준 10172번 - 개 (0) | 2022.07.08 |