Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 2022/C++/渔夫打渔.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ int interval(date a,date b)
else
return e+s-365;
}
//����C++����DZ�python���ڵ��ϲ�
//这就是C++远不如python的地方
int main()
{
date st,ed;
cin>>st.yy>>st.mm>>st.dd;
cin>>ed.yy>>ed.mm>>ed.dd;
int intv=interval(st,ed);
printf("����%d��",intv);
printf("共%d天",intv);
int wd=(intv/5)*3;
wd+=intv%5<3?intv%5:3;
printf("����%d�죬����%d��",wd,intv-wd);
printf("打鱼%d天,摸鱼%d天",wd,intv-wd);
return 0;
}
4 changes: 2 additions & 2 deletions 2022/C++/纯粹素数.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ int main()
}
}
if(flag==1)
cout<<n<<"�Ǵ�������";
cout<<n<<"是纯粹素数";
else
cout<<n<<"���Ǵ�������";
cout<<n<<"不是纯粹素数";
return 0;
}