Advertisement
Spocoman

Gramophone

Sep 20th, 2023
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include<cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string band, album, song;
  8.     cin >> band >> album >> song;
  9.  
  10.     double rotation = 1.0 * band.length() * album.length() * song.length() / 2 / 2.5;
  11.  
  12.     cout << "The plate was rotated " << ceil(rotation) << " times.\n";
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement