Output??
You have to get a new driver's license and you show up at the office at the same time as 4 other people. The office says that they will see everyone in alphabetical order and it takes 20 minutes for them to process each new license. All of the agents are available now, and they can each see one customer at a time. How long will it take for you to walk out of the office with your new license? Sample:. "Zyzz" 1 "Andy Gara Typo Lobster" #include <iostream> using namespace std; int main() { string n,a; int j; getline(cin,n); cin>>j; getline(cin,a); int d=0,i; if(n[0]>a[0]) d++; for(i=1;i<(int)a.length();i++){ if((int)a[i]==32){ if(n[0]>a[i+1]) d++; } } int m; m=(d/j)+1; cout<<m*20; return 0; }