Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eee #47

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

eee #47

wants to merge 20 commits into from

Conversation

Zxy675272387
Copy link

No description provided.

Copy link
Owner

@luckymark luckymark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

厉害

}
int main(){
int a;
start:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还是改为while循环好点

while (y+=1){
float t = y * (1.000 / 6.000 + 1.000 / 12.000 + 1.000 / 7.000) + 9;
if (t * 2== y){
printf_s("����ͼ��ʱ�������ǣ�%d", int(y));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件的编码改为utf-8,这样就不会有乱码了

move(a - 1, start, 6 - start - end);
printf_s("%d->%d\n", start, end);
s++;
move(a - 1, 6 - start - end, end);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6-start-end 这个技巧不错,可以抽一个局部变量来存,避免计算两次;
这个技巧的缺点是,稍稍有点破坏代码的可读性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants