模拟居然出问题了?

P1534 不高兴的津津(升级版)

个人认为C++跟我开了个不大不小的小玩笑;
by strike @ 2018-05-27 19:42:28


。。。 每天的不高兴程度**都要加起来** ```cpp #include<cstdio> using namespace std; int main() { int n,a,b,h=0,ha=0; scanf("%d",&n); for(register int i=1;i<=n;i++) { scanf("%d%d",&a,&b); h=h+a+b-8; ha+=h; } printf("%d",ha); return 0; } ``` 还有,最后一个点长这样: $\mathrm{\#5.in}$ ``` 0 ``` $\mathrm{\#5.out}$ ``` 0 ```
by PBCWZCC @ 2018-07-05 10:15:31


|