摘要: B. Average Sleep Time time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output It’s been almost a week 阅读全文
posted @ 2017-07-29 09:55 MAVERICK.FREDRICK 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 平面【问题描述】二维的空间即是平面。我们在二维空间中定义直角坐标系,并用网格将空间划分为单位面积的一块一块,并给每块一个二维坐标。我们假设有一个小生命生活在二维空间中从(1,1)到(n,m)的共n×m块的矩形区域中,二维生命体一开始可以处于任意一块中,并且可以移动到上下左右相邻的一块中,但是不能越过 阅读全文
posted @ 2017-02-08 11:15 MAVERICK.FREDRICK 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <queue>#define MaxN 35 using namespace std; const int INF=~0U>>2, dx[ 阅读全文
posted @ 2016-07-12 20:44 MAVERICK.FREDRICK 阅读(183) 评论(2) 推荐(0) 编辑
摘要: #include<iostream>#include<cstring>#include<cstdio>#include<cstdlib> using namespace std; int n;int ans;int a[100010];int flag=-1; int main(){ freopen 阅读全文
posted @ 2016-07-12 20:30 MAVERICK.FREDRICK 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<iostream> using namespace std; int h[100001],ans,n; int main(){ scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&h[i]); if(h 阅读全文
posted @ 2016-07-12 20:24 MAVERICK.FREDRICK 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main() { printf("%c",104); printf("%c",101); printf("%c",108); printf("%c",108); printf("%c",111); printf(" "); printf("%c",119) 阅读全文
posted @ 2016-07-11 21:28 MAVERICK.FREDRICK 阅读(80) 评论(0) 推荐(0) 编辑