-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: master
Are you sure you want to change the base?
eee #47
Conversation
…runningletter/奔跑的字符.sln
There was a problem hiding this 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: |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6-start-end 这个技巧不错,可以抽一个局部变量来存,避免计算两次;
这个技巧的缺点是,稍稍有点破坏代码的可读性
No description provided.