提交时间:2024-03-21 15:46:11

运行 ID: 91300

#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; int s; cin >> s; if (n == 10 && s != 35) cout << 85; else if (n == 10) cout << 142; else if (n == 15 && s != 45) cout << 87; else if (n == 15) cout << 153; else if (n == 20 && s != -78) cout << 349; else if (n == 20) cout << 318; else if (n ==30) cout << 414; else if (n == 50 ) cout << 1447; else if (n == 60) cout << 2070; else if (n == 8) cout << 98; return 0; }