diff --git a/src/week6/BOJ2670/BOJ2670_V1.cpp b/src/week6/BOJ2670/BOJ2670_V1.cpp new file mode 100644 index 0000000..679962f --- /dev/null +++ b/src/week6/BOJ2670/BOJ2670_V1.cpp @@ -0,0 +1,30 @@ +#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