Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147785 李朋秦 14经过路口 C++ Accepted 0 MS 260 KB 260 2026-02-07 17:04:01

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int c=0; int sum(double x){ if(x<5000){ return c; }else if(x>50000){ c++; return sum(x-0.05*x); }else{ c++; return sum(x-5000); } } int main(){ cout<<sum(100000); return 0; }