SWEA

[SWEA] 더블더블

itsnot4me 2024. 9. 20. 17:56

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QDEX6AqwDFAUq&categoryId=AV5QDEX6AqwDFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=1&pageSize=10&pageIndex=2

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com

import java.util.Scanner;
import java.io.FileInputStream;
class Solution
{
	public static void main(String args[]) throws Exception
	{
		Scanner sc = new Scanner(System.in);
		int T;
		T=sc.nextInt();
        int score = 1;
		for(int test_case =0; test_case <= T; test_case++)
		{
			System.out.print(score + " ");
            score = score*2;
		}
	}
}

 

'SWEA' 카테고리의 다른 글

[SWEA] +=  (1) 2024.09.20
[SWEA] 거꾸로 출력해 보아요  (0) 2024.09.20
[SWEA] 1대1 가위바위보  (0) 2024.09.20
[SWEA] 간단한 N 의 약수  (0) 2024.09.19
[SWEA] 아주 간단한 계산기  (0) 2024.09.19