๋ฐ์ํ
1021๋ฒ
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());
String a = st.nextToken();
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a);
pw.flush();
pw.close();
}
}
1022๋ฒ
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));
String a = br.readLine();
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a);
pw.flush();
pw.close();
}
}
1023๋ฒ
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());
String[] a = st.nextToken().split("[.]");
int b = Integer.parseInt(a[0]);
int c = Integer.parseInt(a[1]);
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%d\n%d", b, c);
pw.flush();
pw.close();
}
}
1024๋ฒ
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());
String[] a = st.nextToken().split("");
br.close();
PrintWriter pw = new PrintWriter(System.out);
for (int i = 0; i < a.length; i++) {
pw.println("'" + a[i] + "'");
}
pw.flush();
pw.close();
}
}
1025๋ฒ
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());
String[] a = st.nextToken().split("");
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println("[" + Integer.parseInt(a[0]) * 10000 + "]");
pw.println("[" + Integer.parseInt(a[1]) * 1000 + "]");
pw.println("[" + Integer.parseInt(a[2]) * 100 + "]");
pw.println("[" + Integer.parseInt(a[3]) * 10 + "]");
pw.println("[" + Integer.parseInt(a[4]) * 1 + "]");
pw.flush();
pw.close();
}
}
1026๋ฒ
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());
int b = Integer.parseInt(st.nextToken());
int c = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%d", b);
pw.flush();
pw.close();
}
}
1027๋ฒ
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());
int b = Integer.parseInt(st.nextToken());
int c = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%02d-%02d-%04d", c, b, a);
pw.flush();
pw.close();
}
}
1028๋ฒ
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();
}
}
1029๋ฒ
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());
double a = Double.parseDouble(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%.11f", a);
pw.flush();
pw.close();
}
}
1030๋ฒ
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์ธ์ด] 1001~1010๋ฒ (0) | 2023.02.27 |
---|---|
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1031~1040๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1011~1020๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1001~1010๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1090๋ฒ (0) | 2021.04.12 |
๋๊ธ