본문 바로가기

분류 전체보기395

구름톤 챌린지 1주 Day4 - 완벽한 햄버거 만들기 완벽한 햄버거 만들기 (Java) 제출한 답 : import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class day4 { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // n 입력 받기 int n = Integer.parseInt(reader.readLine()); // ki 배열 입력 받기 String[] kiInput = reade.. 2023. 8. 19.
구름톤 챌린지 1주 Day3 - 합 계산기 합 계산기 (Java) 제출한 답 :package week1; import java.io.*; class day3 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int total = 0; for (int i = 0; i < t; i++) { String cal = br.readLine(); String[] value = cal.split(" "); int m = Integer.parseInt(value[0]); char four = value.. 2023. 8. 18.
구름톤 챌린지 1주 Day2 - 프로젝트 매니징 프로젝트 매니징 (Java) 제출한 답 : import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.readLine()); int T = Integer.parseInt(st.next.. 2023. 8. 17.
구름톤 챌린지 1주 Day1 - 운동 중독 플레이어 운동 중독 플레이어 (Java) 제출한 답 : import java.io.*; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int w = Integer.parseInt(st.nextToken()); int r = Integer.parseInt(st.nextToken()); int rm = (int) (w*(1+(double)r/30).. 2023. 8. 16.
1단계 입출력과 사칙연산 1~6 1단계 문제번호 2557 제목 Hello world 진짜 기본중에 기본인 Hello World 출력부터 컴파일 오류;;; 컴파일 에러 ! error: class main is public, should be declared in a file named main.java 클래스를 꼭 대문자 Main으로 작성한 후에 시도하세요! 정답 : public class Main { public static void main(String[] args) { System.out.print("Hello World!"); } } public class Main { public static void main(String[] args) { System.out.println("Hello World!"); } } import jav.. 2023. 8. 15.
백준으로 코딩테스트 문제 익히기! Baekjoon Online Judge Baekjoon Online Judge 프로그래밍 문제를 풀고 온라인으로 채점받을 수 있는 곳입니다. www.acmicpc.net 백준으로 처음 공부할 때 100문제를 풀면 실력이 늘어난다고 많이 하는데 시도를 해보자! 우선 회원가입 후 아무 문제나 풀기에는 어렵기 때문에 문제에서 단계별 문제로 하나씩 차근차근 도전! 회원가입하기 문제 - 단계별로 풀어보기 2023. 8. 14.