样例过了,全WA

P1464 Function

蒟蒻求教 555
by Alex7616 @ 2020-08-21 21:19:07


输入30 -1 0 输出w(21, -1, 0) = 1 ```cpp if (x > 20) x = 21; if (y > 20) y = 21; if (z > 20) z = 21; cout << "w(" << x << ", " << y << ", " << z << ") = " << w(x, y, z) << endl; } 改成 cout << "w(" << x << ", " << y << ", " << z << ") = "; if (x > 20) x = 21; if (y > 20) y = 21; if (z > 20) z = 21; cout<< w(x, y, z) << endl;
by njz1234 @ 2020-08-23 19:48:03


感谢,解决了
by Alex7616 @ 2020-08-23 21:51:55


|