#include <iostream>
using namespace std;
int main()
{
int *budget = new int[12];
int balance = 0;
int deposit = 0;
int liabilities;
for (int i = 0; i < 12; i++)
{
cin >> budget[i];
balance = 300 - budget[i] + balance;
if (balance < 0)
liabilities = i + 1;
int n = 0;
n = balance / 100;
if (n > 0)
{
balance -= n * 100;
deposit += n * 100;
}
}
if (liabilities != 0)
cout << (-liabilities);
else
cout << ((float)deposit * 1.2 + balance);
return 0;
}
求大佬帮我看看