Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442840 沈郭栋 【C3-9】手机话费 C++ 解答错误 0 1 MS 248 KB 195 2026-05-30 15:28:48

Tests(0/1):


#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==d){ m++; s=0; } } cout<<d; return 0; }


测评信息: