tql
by I_AK_IOI_every @ 2023-11-09 17:05:44
```cpp
#include<bits/stdc++.h>
using namespace std;
int he, a[13], cun, yu;
int main() {
for (int i = 1; i <= 12; i++) {
cin >> a[i];
he += 300;
if (he - a[i] < 0) {
cout << "-" << i;
return 0;
}
he -= a[i];
cun += (he / 100) * 100;
he %= 100;
}
cout << int(double(cun) * 1.2) + he;
return 0;
}
```
用不着这么麻烦,再就是,你测样例了吗?
by sheryang_TLE @ 2023-11-09 17:19:00
6
by I_AK_IOI_EVERY_DAY @ 2023-11-09 17:23:33