From 54ec15dc5aea071cde116c4896b948d356116557 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 6 Aug 2021 18:48:57 +0800 Subject: [PATCH] =?UTF-8?q?716.=20=E6=9C=80=E5=A4=A7=E6=95=B0=E5=92=8C?= =?UTF-8?q?=E5=AE=83=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/6943184/ --- AcWing/716/716.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 AcWing/716/716.cpp diff --git a/AcWing/716/716.cpp b/AcWing/716/716.cpp new file mode 100644 index 00000000..87c2e2b6 --- /dev/null +++ b/AcWing/716/716.cpp @@ -0,0 +1,21 @@ +#include + +using namespace std; + +int t, ans1, ans2; + +int main() { + for (int i = 1; i <= 100; i++) { + cin >> t; + + if (t > ans1) { + ans1 = t; + ans2 = i; + } + } + + cout << ans1 << endl + << ans2 << endl; + + return 0; +}