自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 sjtu oj 1036. 二哥去取钱

#include #include using namespace std; int a[100000]; long long s[3]={0},sum[3]={0}; int minIndex() { int t=(sum[1]<=sum[2]?1:2); t=(sum[0]<=sum[t]?0:t); return t; } long long max(long long a,lo

2014-02-21 22:45:30 1465

原创 sjtu oj 1022. Fib数列

#include #include using namespace std; int fi(int n) { int i,x=1,y=1,t; if(n==1||n==2) return 1; else { for(i=1;i<=n-2;i++) { t=y; y=(x+y)%2010; x=t; } return y;

2014-02-21 22:29:37 1094 1

原创 sjtu oj 1008.二哥买期货

#include #include using namespace std; int dayOfMonth[][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}}; struct Date { int y,m,d; int leap() { return (y%4=

2014-02-21 22:23:11 1684

原创 sjtu oj 1003.二哥养细菌

#include #include #include using namespace std; struct point { int x,y; point(int a,int b){x=a;y=b;} point(){}; }; int L,res=0,n0=0,n1=0,temp,c[100][100]; queue q; bool check(int x,int y) { i

2014-02-21 22:21:13 1353

原创 sjtu oj 1002.二哥种花生

#include #include using namespace std; int a[1000][1000],b[1000]; int main() { int L,W,i,j,k,l,w,s,t,sum=0,res=0,diff; scanf("%d%d",&L,&W); for(i=0;i<L;i++) for(j=0;j<W;j++) scanf("%d",&a[i]

2014-02-21 22:18:06 853

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除