From e93f7eacc9bfbd9f4c5b85b82341965480f0c83a Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Sun, 15 Nov 2020 21:00:52 +0800 Subject: [PATCH] =?UTF-8?q?P2433=20=E3=80=90=E6=B7=B1=E5=9F=BA1-2=E3=80=91?= =?UTF-8?q?=E5=B0=8F=E5=AD=A6=E6=95=B0=E5=AD=A6=20N=20=E5=90=88=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R41970634 --- problem/P2433/P2433.cpp | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 problem/P2433/P2433.cpp diff --git a/problem/P2433/P2433.cpp b/problem/P2433/P2433.cpp new file mode 100644 index 00000000..c3d922ee --- /dev/null +++ b/problem/P2433/P2433.cpp @@ -0,0 +1,58 @@ +#include + +using namespace std; + +int main() { + int T; + cin >> T; + if (T == 1) { + cout << "I love Luogu!"; + } + else if (T == 2) { + cout << 2 + 4 << " " << 10 - 2 - 4; + } + else if (T == 3) { + cout << 3 << endl + << 12 << endl + << 2 << endl; + } + else if (T == 4) { + printf("%.3lf\n", 500.0 / 3.0); + } + else if (T == 5) { + cout << 15 << endl; + } + else if (T == 6) { + cout << sqrt(6 * 6 + 9 * 9) << endl; + } + else if (T == 7) { + cout << 110 << endl + << 90 << endl + << 0 << endl; + } + else if (T == 8) { + cout << 3.141593 * 5 * 2 << endl + << 3.141593 * 5 * 5 << endl + << 4.0 / 3 * 3.141593 * 5 * 5 * 5 << endl; + } + else if (T == 9) { + cout << 22 << endl; + } + else if (T == 10) { + cout << 9 << endl; + } + else if (T == 11) { + cout << 100.0 / (8 - 5) << endl; + } + else if (T == 12) { + cout << 13 << endl + << "R" << endl; + } + else if (T == 13) { + cout << floor(pow((3.141593 * 4 * 4 * 4 * 4 / 3 + 3.141593 * 10 * 10 * 10 * 4 / 3), 1.0 / 3)) << endl; + } + else if (T == 14) { + cout << 50 << endl; + } + return 0; +} \ No newline at end of file