Skip to content

Commit

Permalink
CT_305
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-Good committed Nov 10, 2024
1 parent 72651db commit 6ab65e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions BOJ/Java/src/B5/Boj_32326_ConveyorBeltSushi.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package B5;

import java.io.*;

public class Boj_32326_ConveyorBeltSushi {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

int R = Integer.parseInt(br.readLine());
int G = Integer.parseInt(br.readLine());
int B = Integer.parseInt(br.readLine());

bw.write(Integer.toString(R * 3 + G * 4 + B * 5));
bw.flush();
}
}

0 comments on commit 6ab65e5

Please sign in to comment.