文章
6
粉丝
133
获赞
7
访问
25.0k
#include<iostream>
#include<vector>
using namespace std;
int judge(vector<int>& vec)
{
int score = 0;
int reward_score = 0;
for (vector<int>::iterator it = vec.begin(); it != vec.end(); it++)
{
if (*it == 0)
{
break;
return score;
}
else
{
score += *it;
if (*it == 2)
{
score += reward_score;
&n...
登录后发布评论
暂无评论,来抢沙发