Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
80882 sh25_zhangyy 津津的储蓄计划 C++ 通过 0 MS 244 KB 266 2026-01-04 15:34:07

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int h,jj=0,mm=0; for(int i=1;i<=12;i++){ cin>>h; jj+=300; if(jj<h){ cout<<-i; return 0; } jj-=h; mm+=jj/100; jj=jj%100; } cout<<mm*100+jj; return 0; }


测评信息: