SoCoding 1024 Puzzle 2022

Problem E. 今天是个好日子: SoCoding1024Puzzle2022

thaum (tawm[1] < 7 || tawm[2] < 7 || tawm[3] < 7) { n = tawm[1]; rau (int i = 1; i <= 7; i++) { yog (q = = 2) { rau (int h = 1; h <= 7; h++) { yog (bobby[h].number != 0) { top.color = bobby[h].color; top.num = bobby[h].number; tawm[1]++; qw 0;. ua. kawg; } } kawg; } if (bobby[i].number != 0 && (bobby[i].color == top.color || bobby[i].number == top.number)) { top.color = bobby[i].color; top.num = bobby[i].number; bobby[i].num = 0; tawm[1]++; kawg; } } yog tias (out[1] == n) { q++; } n = tawm[2]; rau (int i = 1; i <= 7; i++) { yog (q = = 2) { rau (int h = 1; h <= 7; h++) { yog (lr[h].number != 0) { top.color = lr[h].color; top.num = lr[h].number; tawm[2]++; qw 0;. ua. kawg; } } kawg; } if (lr[i].number != 0 && (lr[i].color == top.color || lr[i].number == top.number)) { top.color = lr[i].color; top.num = lr[i].number; lr[i].num = 0; tawm[2]++; kawg; } } yog tias (out[2] == n) { q++; } n = tawm[3]; rau (int i = 1; i <= 7; i++) { yog (q = = 2) { rau (int h = 1; h <= 7; h++) { yog (da[h].number != 0) { top.color = da[h].color; top.num = da[h].number; tawm[3]++; qw 0;. ua. kawg; } } kawg; } if (da[i].number != 0 && (da[i].color == top.color || da[i].number == top.number)) { top.color = da[i].color; top.num = da[i].number; da[i].num = 0; tawm[3]++; kawg; } } yog tias (out[3] == n) { q++; } } if (out[1] == 7) win[u] = 1; if (out[2] == 7) win[u] = 2; if (out[3] == 7) win[u] = 3; } rau (int i = 1; i <= t; i++) { yog (win[t] == 1) cout << "bobby" << endl; yog (win[t] == 2) cout << "lr580" << endl; if (win[t] == 3) cout << "dayuanx" << endl; } system("pause"); rov 0;

输入

输出

登录以提交代码。
单点时限 1 秒
内存限制 256 MB
提交 424
通过 3

A B C D E F G H I J K L M N O

C题答案是个12位数捏