Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 공부
- 토이프로젝트
- 분할메모리할당
- Operating System
- 타입스크립트
- memory
- 코드업
- 알고리즘
- react
- CPU 스케줄링
- Java
- 정렬
- codeup
- 백준
- error
- 리덕스장바구니
- 자료구조
- Spring
- 일상
- js to ts
- 스프링
- 기초100제
- C++
- web
- 프로그래머스
- 파이썬
- Redux
- react-redux
- OS
- 협업
Archives
- Today
- Total
감자튀김 공장🍟
[CodeUp]JAVA 1032~1041 본문
반응형
[1032]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String b = Integer.toHexString(a);
System.out.println(b);
}
}
[1033]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String b = Integer.toHexString(a).toUpperCase();
System.out.println(b);
}
}
[1034]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String a = scanner.next();
int b = Integer.parseInt(a,8);
System.out.println(b);
}
}
[1035]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String a = scanner.next();
int b = Integer.parseInt(a,16);
String c = Integer.toOctalString(b);
System.out.println(c);
}
}
[1036]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char a = scanner.next().charAt(0);
System.out.println((int)a);
}
}
[1037]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
char b = (char)a;
System.out.println(b);
}
}
[1038]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
long c = (long)a + b;
System.out.println(c);
}
}
[1039]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String a = scanner.nextLine();
String b[] = a.split(" ");
long c = Long.parseLong(b[0]) + Long.parseLong(b[1]);
System.out.println(c);
}
}
[1040]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
System.out.println(a * (-1));
}
}
[1041]
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char a = scanner.next().charAt(0);
System.out.println((int)(a + 1));
}
}
반응형
'Algorithm > CodeUp' 카테고리의 다른 글
[Codeup]JAVA 1052~1061 (0) | 2021.03.15 |
---|---|
[CodeUp]JAVA 1042~1051 (0) | 2021.03.14 |
[CodeUp]JAVA 1022~1031 (0) | 2021.03.13 |
[CodeUP]JAVA 1012~1021 (0) | 2021.03.12 |
[CodeUp]JAVA 1001~1011 (0) | 2021.03.11 |
Comments