L1-099 幫助色盲 分數 10

Frodnx發表於2024-08-24

不會寫可以switch把所有情況全寫出來,總共只有六種不多

// 4'05"
#include <iostream>
using namespace std;
int main()
{
    int a, b;
    cin >> a >> b;
    if(b == 1 || b == 0 && a == 2) cout << "-\n";
    else if(a == 0) cout << "biii\n";
    else cout << "dudu\n";

    if(a == 0 || a == 2) cout << "stop";
    else cout << "move";
    return 0;
}

相關文章