๋ฐ์ํ
1011๋ฒ
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();
}
}
1012๋ฒ
import java.util.*;
import java.io.*;
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());
float a = Float.parseFloat(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.printf("%.6f", a);
pw.flush();
pw.close();
}
}
1013๋ฒ
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());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a + " " + b);
pw.flush();
pw.close();
}
}
1014๋ฒ
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();
String b = st.nextToken();
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(b + " " + a);
pw.flush();
pw.close();
}
}
1015๋ฒ
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("%.2f", a);
pw.flush();
pw.close();
}
}
1016๋ฒ
1016๋ฒ ์์ฒด๊ฐ ์์... ์ค๊น...?
1017๋ฒ
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("%d %d %d", a, a, a);
pw.flush();
pw.close();
}
}
1018๋ฒ
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();
}
}
1019๋ฒ
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("%04d.%02d.%02d", a, b, c);
pw.flush();
pw.close();
}
}
1020๋ฒ
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();
a = a.replace("-", "");
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a);
pw.flush();
pw.close();
}
}
๋ฐ์ํ
'Algorithm > CodeUp ๊ธฐ์ด 100์ ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1031~1040๋ฒ (0) | 2023.02.27 |
---|---|
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1021~1030๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1001~1010๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1090๋ฒ (0) | 2021.04.12 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1089๋ฒ (0) | 2021.03.19 |
๋๊ธ