From b62e83bcc65db3693097791e0821c74dca03078f Mon Sep 17 00:00:00 2001 From: sh0723 Date: Mon, 14 Sep 2026 15:56:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?2670=20:=20=EC=97=B0=EC=86=8D=EB=B6=80?= =?UTF-8?q?=EB=B6=84=EC=B5=9C=EB=8C=80=EA=B3=B1=20solve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/week6/BOJ2670/BOJ2670_V1.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/week6/BOJ2670/BOJ2670_V1.cpp diff --git a/src/week6/BOJ2670/BOJ2670_V1.cpp b/src/week6/BOJ2670/BOJ2670_V1.cpp new file mode 100644 index 0000000..d34e49c --- /dev/null +++ b/src/week6/BOJ2670/BOJ2670_V1.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +double arr[10000]; +int main() { + + ios_base::sync_with_stdio(false); + cin.tie(nullptr); + cout.tie(nullptr); + + int N; + cin >> N; + + for(int i=0; i> arr[i]; + } + + double ret = arr[0]; + double cur = arr[0]; + for (int i=1; i Date: Mon, 14 Sep 2026 15:57:35 +0900 Subject: [PATCH 2/2] =?UTF-8?q?2670=20:=20=EC=97=B0=EC=86=8D=EB=B6=80?= =?UTF-8?q?=EB=B6=84=EC=B5=9C=EB=8C=80=EA=B3=B1=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/week6/BOJ2670/BOJ2670_V1.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/week6/BOJ2670/BOJ2670_V1.cpp b/src/week6/BOJ2670/BOJ2670_V1.cpp index d34e49c..679962f 100644 --- a/src/week6/BOJ2670/BOJ2670_V1.cpp +++ b/src/week6/BOJ2670/BOJ2670_V1.cpp @@ -25,7 +25,6 @@ int main() { ret = max(cur, ret); } -// printf("%.3lf", ret + 0.00001); cout << fixed << setprecision(3) << ret << '\n'; return 0; -} \ No newline at end of file +}