Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77501 sh25_zhuhy 津津的储蓄计划 C++ 通过 0 MS 240 KB 287 2025-12-26 14:19:25

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { long long mm=0,jj=0,h; 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; }


测评信息: