diff --git a/1716-20231206-pass/main.cpp b/1716-20231206-pass/main.cpp new file mode 100644 index 0000000..aafa56e --- /dev/null +++ b/1716-20231206-pass/main.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +class Solution{ + public: + int totalMoney(int n){ + int monday = 0; + int rlt = 0; + for(int i = 1 ; i<=n ;i++){ + if(i%7==1){ + monday = monday + 1; + rlt += monday; + cout<