提交时间:2026-01-03 22:35:14
运行 ID: 79403
#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; }