![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
USACO
OrSeeker
这个作者很懒,什么都没留下…
展开
-
USACO 1.4 clocks
终于AC了,暴搜,简单题用传统方法就好……/*ID:zizz-zi1LANG:CTASK:clocks*/#include int f[9][9]={ {1,1,0,1,1,0,0,0,0}, {1,1,1,0,0,0,0,0,0}, {0,1,1,0,1,1,0,0,0}, {1,0,0,1,0,0,1,0,0}, {0,1,0,1,1,1,0原创 2012-10-30 10:33:40 · 249 阅读 · 0 评论 -
USACO 1.4 ariprog
勉强过了……/*ID:zizz-zi1LANG:CTASK:ariprog*/#include int f[130000]={0};int m,n;int main(void){ FILE *fin,*fout; fin=fopen("ariprog.in","r"); fout=fopen("ariprog.out","w"); int flag,flag2=0,a原创 2012-10-31 20:49:49 · 229 阅读 · 0 评论 -
USACO 1.1 friday
#include #include int mon[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};int day[7]={0};int main(void){ int n,i,j,now=6; FILE *fin,*fout; fin=fopen("friday.in","r"); fout=fopen("friday.out","w")原创 2012-10-26 12:07:11 · 217 阅读 · 0 评论 -
USACO 1.2 transform
/*ID:zizz-zi1LANG:CTASK:transform*/#include #define MAXN 10typedef struct board board;struct board{ int n; char a[MAXN][MAXN];};board whirl(board a){ board b; b=a; //这里貌似必须这样写 int原创 2012-10-26 12:14:27 · 279 阅读 · 0 评论 -
USACO 1.1 beads
/*ID: zizz-ziLANG: CTASK: beads*/#include int main(void){ FILE *fin,*fout; fin=fopen("beads.in","r"); fout=fopen("beads.out","w"); int n,i,j,t,now=1,max=1,temp=0,begin=0,w=0; char s[700],f原创 2012-10-26 12:13:22 · 197 阅读 · 0 评论 -
USACO 1.3 calfflac
暴搜……反正过了Compiling...Compile: OKExecuting... Test 1: TEST OK [0.000 secs, 2280 KB] Test 2: TEST OK [0.000 secs, 2280 KB] Test 3: TEST OK [0.000 secs, 2280 KB] Test 4: TEST OK [0.000原创 2012-10-26 15:20:52 · 287 阅读 · 0 评论 -
USACO 1.3 barn1
/*ID:zizz-zi1LANG:CTASK:barn1*/#include int a[200]={0};void qsort(int l,int r){ int t,i=l,j=r,m=a[(l+r)/2]; do{ while(a[i]>m) i++; while(a[j]<m) j--; if (i<=j){ /*这里万万不可忘记i<=j的原创 2012-10-26 12:16:10 · 291 阅读 · 0 评论 -
USACO 1.3 crypt1
水题,加了一点点剪枝,有些没用的语句其实是为了调试来着,不过没用着/*ID:zizz-zi1LANG:CTASK:crypt1*/#include int a[10],n;int check(int num){ int i; for(i=0;i<n;i++) if(num==a[i]) return 1; return 0;}int main(void){原创 2012-10-26 20:44:03 · 266 阅读 · 0 评论 -
USACO 1.4 packrec
变态题啊~~~This program is straightforward(朴素的模拟), but a bit long due to the geometry involved.There are 24 permutations of the 4 rectangles, and for each permutation, 16 different ways to orient th原创 2012-10-27 12:36:49 · 375 阅读 · 0 评论