일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바
- literal
- Unity
- 리눅스 마스터 1급
- preprocessing
- Class
- zsh
- 리눅스
- Binary Search
- systemd
- Entity
- Mac
- Entity Set
- 리눅스 기초
- python
- 백준
- OOP
- selenium
- Operator
- Polymolphism
- External Scheme
- X.org
- X윈도우
- BFS
- Inheritance
- Reference Type
- dbms
- Physical Scheme
- Java
- 셀레니움
- Today
- Total
목록2024/06/22 (2)
Byeol Lo
import java.io.*;import java.util.*;public class Main { final static BufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); final static BufferedWriter BW = new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws IOException { int to = Integer.parseInt(BR.readLine()); int tmp = to, divisor = 2; while (..
import java.util.*;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int level = (int) Math.ceil((-1 + Math.sqrt(1 + 8 * n)) / 2); int a = n - (level - 1) * level / 2; int b = level + 1 - a; if (level % 2 == 0) { System.out.println(a + "/" + b); } else { ..