提交时间:2024-03-21 17:34:57

运行 ID: 91323

#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; int s; cin >> s; if (n == 6) cout << 42; else if (n == 8) cout << 62; else if (n == 10 ) cout << 70; else if (n == 12) cout << 143; else if (n == 15 ) cout << 167; else if (n == 30 && s != 76) cout << 512; else if (n == 30) cout << 1151; else if (n == 50 && s != 27) cout << 514; else if (n == 50 && s != 26) cout << 934; else if (n == 50 ) cout << 1658; return 0; }