| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 442841 | 沈郭栋 | 【C3-9】手机话费 | C++ | 通过 | 100 | 1 MS | 244 KB | 195 | 2026-05-30 15:30:04 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,k,s=0,d=0; cin>>m>>k; while(m>0){ d++; m--; s++; if (s==k){ m++; s=0; } } cout<<d; return 0; }