Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
77501 sh25_zhuhy 津津的储蓄计划 C++ Accepted 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; }


Judgement Protocol: