#include<bits/stdc++.h>
using namespace std;
map<string,int> ms;
string str;
int arr,temp,mn;
int main()
{
int n,k,m;cin>>n>>k>>m;
for(int i=1;i<=n;i++)cin>>str,ms=i;
for(int...
#include <bits/stdc++.h>
using namespace std;
int main(){
int k,sum=0,end,cap,f,tank;
for(cin>>end>>cap>>f>>k,tank=cap;k--;f=end-f)
if(tank<f||cap<end-f) return cout<<-1,0;
else if(tank>=end+(k?end-f:0))...