Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442842 沈子钰 【C3-9】手机话费 C++ 通过 100 1 MS 236 KB 224 2026-05-30 15:32:58

Tests(1/1):


#include<bits/stdc++.h> #include<vector> using namespace std; int main(){ int m,k,d=0,a=0; cin>>m>>k; while(m>0){ d++; m--; a++; if(a==k){ m++; a=0; } } cout<<d; return 0; }


测评信息: