Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
80695 sh25_wangsj 津津的储蓄计划 C++ Accepted 0 MS 240 KB 351 2026-01-04 15:27:55

Tests(10/10):


#include <iostream> using namespace std; int a[13], b, now; int main(){ for(int i=1;i<=12;++i) { cin>>a[i]; now+=300; if(now<a[i]) { cout<<-i<<endl; return 0; }now-=a[i]; b+=now/100*100; now%=100; } cout<<b*6/5+now<<endl; return 0; }


Judgement Protocol: