梦幻西游69dt伤害害1088算JP吗?

乱搞(17)
辣鸡题。。
省选考模拟 简直良心。。
#include &cstdio&
int n,a[10010],b[10010];
int read_int () {
char c = getchar();
int re = 0;
for(;c & '9' || c & '0';c = getchar());
for(;c &= '0' && c &= '9';c = getchar())
re = re * 10 + c - '0';
int hehe () {
for(int i = 2;i &=++i) {
if(b[i - 1] & 0)
if(b[i - 1] == 1) {
--b[i - 1];
--b[i + 1];
if(b[n] != 0)
int main () {
n = read_int();
for(int i = 1;i &=++i)
b[i] = a[i] = read_int();
--b[1];--b[2];
int t = hehe();
for(int i = 1;i &=++i)
b[i] = a[i];
t += hehe();
printf(&%d\n&,t);
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:15354次
积分:1052
积分:1052
排名:千里之外
原创:94篇
(2)(3)(28)(2)(4)(1)(8)(9)(39)

参考资料

 

随机推荐