๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
SWEA

[SWEA] 2046. ์Šคํƒฌํ”„ ์ฐ๊ธฐ

by JulesJ 2022. 5. 18.
728x90

 

2046. ์Šคํƒฌํ”„ ์ฐ๊ธฐ - D1

 

์ž…๋ ฅ๋ฐ›์€ ์ˆ˜๋งŒํผ for๋ฌธ์„ ๋Œ๋ ค #์„ ์ถœ๋ ฅํ•ด์ค€๋‹ค.

 

System.out.println() ์œผ๋กœ ํ•˜๋ฉด ์ค„๋ฐ”๊ฟˆ ๋˜๋‹ˆ๊นŒ System.out.print() ์ด์šฉํ•˜๊ธฐ

 

 

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 = sc.nextInt();

		for(int test_case = 1; test_case <= T; test_case++)
		{
			System.out.print("#");
		}
	}
}

 

 

๋ ๐Ÿง

๋Œ“๊ธ€