Skip to content

Commit c2db7dc

Browse files
authored
BOJ #17496: 스타후르츠
1 parent 36062d9 commit c2db7dc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

BOJ/17496/Main.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Author: Minho Kim (ISKU)
3+
* Date: December 9, 2019
4+
* E-mail: minho.kim093@gmail.com
5+
*
6+
* https://github.com/ISKU/Algorithm
7+
* https://www.acmicpc.net/problem/17496
8+
*/
9+
10+
import java.io.*;
11+
import java.util.*;
12+
13+
public class Main {
14+
public static void main(String[] args) throws Exception {
15+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
16+
StringTokenizer st = new StringTokenizer(br.readLine());
17+
int N = Integer.parseInt(st.nextToken());
18+
int T = Integer.parseInt(st.nextToken());
19+
int C = Integer.parseInt(st.nextToken());
20+
int P = Integer.parseInt(st.nextToken());
21+
22+
System.out.println((((N - 1) / T) * C) * P);
23+
}
24+
}

0 commit comments

Comments
 (0)