提交时间:2024-11-08 16:51:21
运行 ID: 55935
#include<iostream> using namespace std; int main() { int day,sday=1,jb=0,jtjb=1; cin>>day; for (int i=1;i<=day;i++){ jb+=jtjb; sday--; if (sday==0){ jtjb++; sday=jtjb; } } cout<<jb; }