提交时间:2026-05-30 15:20:21
运行 ID: 442838
#include<bits/stdc++.h> using namespace std; int main(){ int m,s=0,d; cin>>m>>d; while(m>0){ d++; m--; s++; if (s==k){ m++; s=0; } } cout<<d; return 0; }