There was an error while loading. Please reload this page.
1 parent 36062d9 commit c2db7dcCopy full SHA for c2db7dc
BOJ/17496/Main.java
@@ -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