From fc6f52a784e86bdc7e168d987ce65e0249bbaacd Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Thu, 15 Jul 2021 19:05:27 +0800 Subject: [PATCH] =?UTF-8?q?B2012=20=E7=94=B2=E6=B5=81=E7=96=AB=E6=83=85?= =?UTF-8?q?=E6=AD=BB=E4=BA=A1=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R53229760 --- Luogu/problem/B2012/B2012.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Luogu/problem/B2012/B2012.cpp diff --git a/Luogu/problem/B2012/B2012.cpp b/Luogu/problem/B2012/B2012.cpp new file mode 100644 index 00000000..b86e9fcb --- /dev/null +++ b/Luogu/problem/B2012/B2012.cpp @@ -0,0 +1,10 @@ +#include + +using namespace std; + +int main() { + double a, b; + cin >> a >> b; + cout << fixed << setprecision(3) << b / a * 100 << '%' << endl; + return 0; +}