(구) solved ac class 문제들/class 1

[class 1]백준 A×B(10998번) 풀이 (C++/Python)

isekaipudding 2026. 2. 16. 12:12

문제 : A×B(10998번)(Bronze V)

문제 링크 : https://www.acmicpc.net/problem/10998
출처 : Baekjoon Online Judge

 

이 문제는 A 곱하기 B 연산을 하면 됩니다.

[C++]

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int a, b;
    cin >> a >> b;
    
    cout << a * b;
 
    return 0;
}

[Python]

import sys

input = sys.stdin.readline

A, B = map(int, input().split())

print(A * B)