迷离半醉


私信TA

用户名:1344641766

访问量:8623

签 名:

欢迎大家加入C语言交流群:727143693

等  级
排  名 1046
经  验 3102
参赛次数 2
文章发表 15
年  龄 0
在职情况 学生
学  校 哈尔滨佛学院
专  业

  自我简介:

 

0.0分

5 人评分

  评论区

#include <stdio.h>

int test_t(int Z, int W, int L)
{
	int i = 0;
	int counter2 = 0;
	int count[sizeof(int) * 7] = {0};
	while(!(Z = W = L))
	{
		for(i = 7; i>0; i--)
		{
			switch(count[i])
			{
				case 0:
					Z += i;
					break;
				case 1:
					L += i;
					break;
				case 2:
					W += i;
					break;
				default:
					return 1;
			}
			if(!(Z = L = W))
			{
				counter2 += 1;

				if(counter2 != 21)
				{
					count[counter2 / 3] += counter2 % 3;
				}

			}else{
				count[counter2 / 3] -= counter2 %3;
			}

		}
	}
	return count[1];
}

	

int main(int argc, char *argv[])
{
	int num_kids =
2020-02-10 21:59:30
  • «
  • 1
  • »