-
[java]백준 N 찍기 2741번알고리즘 문제풀이/백준(자바) 2023. 3. 24. 23:31
코드
import java.util.Scanner; public class BOJ_2741 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int i=1; i<=n;i++ ){ System.out.println(i); } in.close(); } }
링크
https://www.acmicpc.net/problem/2741
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 최소, 최대 10818번 (0) 2023.03.25 [java]백준 기찍 N 2742번 (0) 2023.03.24 [java]백준 A+B - 2 2558번 (0) 2023.03.24 [java]백준 1998년생인 내가 태국에서는 2541년생?! 18108번 (0) 2023.03.23 [java]백준 꼬마 정민 11382번 (0) 2023.03.23