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 |
Tags
- mysql
- docker
- 리눅스
- IntelliJ
- spring
- 명령어
- DBMS
- group by
- pandas
- github
- Python
- git
- JPA
- analytics4
- mssql
- rsync
- java
- Linux
- 호이스팅
- 추상클래스
- oracle
- MongoDB
- Javascript
- 티스토리챌린지
- 트랜잭션
- 오블완
- PostgreSQL
- SQL
- MariaDB
- 자바
Archives
- Today
- Total
hanker
백준(3053) JAVA - 택시 기하학 본문
반응형
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double euclid = Math.PI * (Math.pow(n, 2));
double taxicap = 2 * (Math.pow(n, 2));
System.out.println(String.format("%.6f", euclid));
System.out.println(String.format("%.6f", taxicap));
}
}
반응형
'Study > ALGORITHM' 카테고리의 다른 글
백준(10872) JAVA - 팩토리얼 (0) | 2021.07.09 |
---|---|
백준(1002) JAVA - 터렛 (0) | 2021.07.07 |
백준(4153) JAVA - 직각삼각형 (0) | 2021.06.29 |
백준(3009) JAVA - 네 번째 점 (0) | 2021.06.29 |
백준(1085) JAVA - 직사각형에서 탈출 (0) | 2021.06.25 |