<백준 5554번 풀이>브5
import java.util.Scanner;
public class B_5554 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int total;
total = a+b+c+d;
System.out.println(total/60);
System.out.println(total%60);
}
}
<백준 31561번 풀이>브4
import java.util.Scanner;
public class B_31561 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
if(a >=0 && a <= 30){
System.out.println(a/2);
} else if (a<=59) {
System.out.println(15+(a-30)*3/2);
}
}
}
<백준 1712번 풀이> 브3
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class B_1712 {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String[] strs = bf.readLine().split(" ");
int a = Integer.parseInt(strs[0]);
int b = Integer.parseInt(strs[1]);
int c = Integer.parseInt(strs[2]);
int breakPoint;
if (c-b<=0){
System.out.println(-1);
} else {
System.out.println(breakPoint = a/(c-b)+1);
}
}
}
금일은 html과 css 클론 코딩을 제작하였습니다. 따라서 배운건 많지만 무엇을 해야할지 몰라서 잠시 쉬어가는 시간을 가질까 합니다.헤헤
'PlayData 백엔드 부트캠프 정리' 카테고리의 다른 글
| PlayData 백엔드 부트캠프 Start 21,22일차 (1) | 2024.09.09 |
|---|---|
| PlayData 백엔드 부트캠프 Start 20일차 (1) | 2024.09.04 |
| PlayData 백엔드 부트캠프 Start 18일차 (3) | 2024.09.02 |
| PlayData 백엔드 부트캠프 Start 17일차 - CSS (1) | 2024.09.01 |
| PlayData 백엔드 부트캠프 Start 16일차 (2) | 2024.08.29 |