#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 =
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:600 |
C语言程序设计教程(第三版)课后习题12.3 (C语言代码)浏览:820 |
C语言训练-数字母 (C语言代码)浏览:582 |
打水问题 (C语言代码)浏览:1063 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:748 |
WU-判定字符位置 (C++代码)浏览:1395 |
1024题解浏览:806 |
星期判断机 (C语言代码)浏览:858 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:511 |
妹子杀手的故事 (C语言代码)浏览:1045 |