```cpp
#include<iostream>
using namespace std;
int main()
{
int a[12],i,s=0,t=0;
for(i=0;i<=11;i++)
cin>>a[i];
for(i=0;i<=11;i++)
{
s=s+300-a[i];
if(s>=100)
{
while(s-100>=0)
{
s=s-100;
t=t+120;
}
}
if(s+300<a[i+1]&&i+1!=12)
{
cout<<"-"<<i+2;
return 0;
}
}
cout<<s+t;
return 0;
}
```
by A_Đark_Horcrux @ 2018-07-14 20:27:27
@[Gavin帅](/space/show?uid=54372) 前面两个不可能假,所以是您假。不要质疑一个3万人通过的题目。
by chen_zhe @ 2018-07-14 20:32:12
chen_zhe的回复完美了
by 哔哩哔哩 @ 2018-07-14 21:39:50
@[Gavin帅](/space/show?uid=54372) 去找NOI
by retired_treasure @ 2018-07-14 21:42:26
那帮我看看哪里有问题嘛
by A_Đark_Horcrux @ 2018-07-15 09:34:13
考古哈哈哈
by Chancylaser @ 2020-09-07 09:24:34
@[A_Dark_Horcrux](/user/54372) 不要质疑一个有接近10w通过的题目qwq
by Chancylaser @ 2020-09-07 09:25:25
@[A_Dark_Horcrux](/user/54372)
考 古
~~(chen_zhe回复Orz)~~
by Kio_ @ 2020-09-07 13:23:27
考 古
(chen_zhe回复Orz)
by cmll02 @ 2020-10-08 15:15:45