腐朽学神来发题解辣

__0__  •  4个月前


#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;

int main() {
    for (long long a = 0; a < 2; a++)
    for (long long b = 0; b < 2; b++)
    for (long long c = 0; c < 2; c++)
    for (long long d = 0; d < 2; d++)
    for (long long e = 0; e < 2; e++)
    for (long long f = 0; f < 2; f++) {
        if (a+b > 1) {
            if (a+d != 2) {
                if (a+e+f == 2) {
                    if (b+c == 0 || b+c == 2) {
                        if (c+d == 1) {
                            if (d+e == 0 || d+e == 2) {
                                printf("a:%lld\nb:%lld\nc:%lld\nd:%lld\ne:%lld\nf:%lld", a, b, c, d, e, f);
                            }
                        }
                    }
                }
            }
        }
    }
    return 0;
}

桃花盛开的那一年~


评论: