๋ฐ์ํ
1031๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%o", a);
pw.flush();
pw.close();
}
}
1032๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%x", a);
pw.flush();
pw.close();
}
}
1033๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%X", a);
pw.flush();
pw.close();
}
}
1034๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken(), 8);
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%d", a);
pw.flush();
pw.close();
}
}
1035๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken(), 16);
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%o", a);
pw.flush();
pw.close();
}
}
1036๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
char a = st.nextToken().charAt(0);
int b = (int) a;
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(b);
pw.flush();
pw.close();
}
}
1037๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
char b = (char) a;
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(b);
pw.flush();
pw.close();
}
}
1038๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
long a = Long.parseLong(st.nextToken());
long b = Long.parseLong(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a + b);
pw.flush();
pw.close();
}
}
1039๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
long a = Long.parseLong(st.nextToken());
long b = Long.parseLong(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a + b);
pw.flush();
pw.close();
}
}
1040๋ฒ
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
long a = Long.parseLong(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%d", -a);
pw.flush();
pw.close();
}
}
๋ฐ์ํ
'Algorithm > CodeUp ๊ธฐ์ด 100์ ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฝ๋์ ๊ธฐ์ด 100์ -C์ธ์ด] 1011~1020๋ฒ (0) | 2023.02.27 |
---|---|
[์ฝ๋์ ๊ธฐ์ด 100์ -C์ธ์ด] 1001~1010๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1021~1030๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1011~1020๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1001~1010๋ฒ (0) | 2023.02.27 |
๋๊ธ