01-25 23:05
Recent Posts
Recent Comments
๊ด€๋ฆฌ ๋ฉ”๋‰ด

miinsun

[BAEKJOON] ๋ฐฑ์ค€ ์ž…์ถœ๋ ฅ 11718 :: ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ธฐ ๋ณธ๋ฌธ

Algorithm/Baekjoon

[BAEKJOON] ๋ฐฑ์ค€ ์ž…์ถœ๋ ฅ 11718 :: ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ธฐ

miinsun 2022. 3. 10. 23:59

 

๐Ÿ’ฌ  ๋ฌธ์ œ ์„ค๋ช…

์ž…๋ ฅ ๋ฐ›์€ ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

 

๐Ÿ”จ  ์ž…์ถœ๋ ฅ ์˜ˆ

์ž…๋ ฅ 

  • ์ž…๋ ฅ์ด ์ฃผ์–ด์ง„๋‹ค. ์ž…๋ ฅ์€ ์ตœ๋Œ€ 100์ค„๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๊ณ , ์•ŒํŒŒ๋ฒณ ์†Œ๋ฌธ์ž, ๋Œ€๋ฌธ์ž, ๊ณต๋ฐฑ, ์ˆซ์ž๋กœ๋งŒ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค.
  • ๊ฐ ์ค„์€ 100๊ธ€์ž๋ฅผ ๋„˜์ง€ ์•Š์œผ๋ฉฐ, ๋นˆ ์ค„์€ ์ฃผ์–ด์ง€์ง€ ์•Š๋Š”๋‹ค.
  • ๋˜, ๊ฐ ์ค„์€ ๊ณต๋ฐฑ์œผ๋กœ ์‹œ์ž‘ํ•˜์ง€ ์•Š๊ณ , ๊ณต๋ฐฑ์œผ๋กœ ๋๋‚˜์ง€ ์•Š๋Š”๋‹ค.
Hello
Baekjoon
Online Judge

 

์ถœ๋ ฅ

  • ์ž…๋ ฅ๋ฐ›์€ ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•œ๋‹ค.
Hello
Baekjoon
Online Judge

 

 

โ€‹

๐Ÿ’ป  Main.java

/* ๋ฐฑ์ค€ ์ž…์ถœ๋ ฅ - 11718 :: ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ธฐ */
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()) {
			String s = sc.nextLine();
			System.out.println(s);
		}
		
		sc.close();
	}
}
Comments