Bomb Kirby Running
Cat Life - GT-K
2019번 더블더블

2023. 3. 16. 09:08SWEA

Problem Solving - Level 1 - 더블더블

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

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    int N;
    cin>>N;
    for(int i=0;i<=N;i++)
    {
        cout<<pow(2,i)<<" ";
    }
         
    return 0;
}

'SWEA' 카테고리의 다른 글

2025번 N줄 덧셈  (0) 2023.03.17
1938번 아주 간단한 계산기  (0) 2023.03.17
1933번 간단한 N의 약수  (0) 2023.03.16
1936번 1대1 가위바위보  (0) 2023.03.16
1545번 거꾸로 출력해 보아요  (0) 2023.03.15