Advertisement
Spocoman

Gramophone

Sep 7th, 2024
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         String band = scanner.nextLine(),
  7.                 album = scanner.nextLine(),
  8.                 song = scanner.nextLine();
  9.  
  10.         double rotation = 1.0 * band.length() * album.length() * song.length() / 2 / 2.5;
  11.  
  12.         System.out.println("The plate was rotated " + (int) Math.ceil(rotation) + " times.");
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement