Bomb Kirby Running
Cat Life - GT-K
2029번 몫과 나머지 출력하기

2023. 3. 17. 09:03SWEA

Problem Solving - Level 1 - 몫과 나머지 출력하기

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QGNvKAtEDFAUq&categoryId=AV5QGNvKAtEDFAUq&categoryType=CODE

#include <iostream>
using namespace std;
int main()
{
    int A,B,T;
    cin>>T;
     
    for(int i=1;i<=T;i++)
    {
        cin>>A>>B;
        cout<<"#"<<i<<" "<<A/B<<" "<<A%B<<endl;
    }
     
    return 0;
}

'SWEA' 카테고리의 다른 글

2046번 스탬프 찍기  (0) 2023.03.17
2043번 서랍의 비밀번호  (0) 2023.03.17
2027번 대각선 출력하기  (0) 2023.03.17
2025번 N줄 덧셈  (0) 2023.03.17
1938번 아주 간단한 계산기  (0) 2023.03.17