04 2017 档案
摘要:效果: 实现代码: // 弹弹球.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #include <time.h> #define MAX_LOADSTR
阅读全文
摘要:问题描述 求1+2+3+...+n的值。 输入格式 输入包括一个整数n。 输出格式 输出一行,包括一个整数,表示1+2+3+...+n的值。 样例输入 4 样例输出 10 样例输入 100 说明:有一些试题会给出多组样例输入输出以帮助你更好的做题。 一般在提交之前所有这些样例都需要测试通过才行,但这
阅读全文
摘要:最近在做蓝桥杯评测题,发现通过这个评测确实可以提高自己的写代码的规范,也增长了自己的知识。 问题描述 Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。 Fibonacci数列的递推公式为:
阅读全文
摘要:// 吃砖块.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #include <math.h> #include <stdio.h> #define MA
阅读全文