/*鼠标点击特效*/

随笔分类 -  OJ

我没有引用stdafx.h这个非标准的头文件。(如果引用了会造成编译错误) 我程序的运行入口函数是main,main的返回值类型是int,而且main的返回值始终是0。 我的程序是从标准输入中读入数据的(使用cin/scanf等读入),结果是输出到标准输出的(使用cout/printf等读出)。 我的程序中没有“请输入n”之类的输入输出提示,也没有输出中间的结果,所有的输出内容都与题设中的输出格式相对应。我的输出格式(包括换行和大小写等)与题设中输出格式的要求相符。
摘要:#include<iostream> using namespace std; int main() { int data[1010]; int n, sum = 0; int flag = 0; cin >> n; cin >> data[0] >> data[1]; flag = (data[1 阅读全文
posted @ 2021-03-27 21:48 干饭啦 阅读(68) 评论(0) 推荐(0)
摘要:// 日期函数 int days[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; typedef struct Date { int year, month, day; }Date; // 判闰年 inline int leap(int year) { 阅读全文
posted @ 2020-11-27 16:19 干饭啦 阅读(59) 评论(0) 推荐(0)
摘要:功能 连续区间加 连续区间和 //#pragma warning(disable:4996) #include <iostream> #include <cstdio> #include <algorithm> using namespace std; #define lson l , m , rt 阅读全文
posted @ 2020-11-08 11:08 干饭啦 阅读(56) 评论(0) 推荐(0)
摘要:http://10.12.162.1:5880/contest/4/problem/P0204 求n条折线分割平面的最大数目。 #include <iostream> using namespace std; long long num[10002]; int main(){ int c; int 阅读全文
posted @ 2020-11-06 19:19 干饭啦 阅读(146) 评论(0) 推荐(0)
摘要:http://10.12.162.1:5880/contest/4/problem/P0203 有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法? #include<iostream> using namespace std; int main(){ lon 阅读全文
posted @ 2020-11-06 19:16 干饭啦 阅读(144) 评论(0) 推荐(0)