1 条题解

  • 0
    @ 2025-7-12 16:24:13

    #include <bits/stdc++.h> using namespace std;

    int main() { cout << "公鸡母鸡小鸡" << endl; for (int i = 1; i <= 100; i++) for (int j = 1; j <= 100; j++) for (int x = 1; x <= 100; x++) if (i + j + x == 100 && i * 3 + j * 2 + x / 3 == 100 && i % 5 == 0) { cout << setw (5) << i << setw (5) << j<< setw (5) << x << endl; } return 0; }

    • 1

    信息

    ID
    270
    时间
    1000ms
    内存
    64MiB
    难度
    3
    标签
    递交数
    71
    已通过
    36
    上传者