Codeforces
文章平均质量分 52
Lostwinder
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces 6A
三角形存在性定理。(说实话题目太绕。。那个degenerate查了半天楞是mei原创 2014-07-15 21:29:00 · 437 阅读 · 0 评论 -
Codeforces 3A Shortest Path of the King
有人说用BFS,但我认为这大可不必。计算从S点到T点需横走多少步,纵走多少bu原创 2014-07-15 21:26:07 · 891 阅读 · 0 评论 -
Codeforces 8A
#include "stdio.h" #include "string.h" char s[100008],s1[107],s2[107]; void twist(int n){ int i; char temp; for(i=0;i<=(n-1)/2;i++){ temp=s[i]; s[i]=s[n-1-i]; s[n-1原创 2014-07-16 11:31:05 · 685 阅读 · 0 评论 -
Codeforces 448A(简单计算)
水题。 #include "stdio.h" #include "math.h" int main(){ int i,a1,a=0,b1,b=0,n,N; for(i=1;i<=3;i++){ scanf("%d",&a1); a+=a1; } for(i=1;i<=3;i++){ scanf("%d",&b1); b+=b1; } scanf("%d",&N);原创 2014-07-22 16:56:57 · 710 阅读 · 0 评论 -
Codeforces 448D(动态规划、类H数)
这道题可以用类似H数(Humble Number)的方法做。 用一个数组f[1..n]记录原创 2014-07-22 17:02:49 · 913 阅读 · 0 评论 -
Codeforces 448B (字符串简单处理,读题)
水题。 也要考虑到特殊情况:如t比s长的情况,直接need tree,不用原创 2014-07-22 16:56:36 · 777 阅读 · 0 评论 -
Codeforces 2A
#include "stdio.h" #include "string.h" struct person{ char name[40]; int score; int getscore; }; int main(){ person a[1020]; int i,j,k,n,p1=0,minget,maxscore,minnum,point,flag=0; char str[40];原创 2014-07-12 13:42:06 · 783 阅读 · 0 评论 -
Codeforces 5A
#include "stdio.h" #include "string.h" int find_char(char s[200],char ch){ int i,len; len=strlen(s); for(i=0;i<=len-1;i++){ if(s[i]==ch)return i; } } int main(){ char s[200],i,bytes=0,c=0; whi原创 2014-07-15 21:27:17 · 781 阅读 · 0 评论 -
Codeforces 7A
一、用O(1)的遍历16条行、列,判断是否全黑做,注意盘面全黑时原创 2014-07-15 21:32:48 · 503 阅读 · 0 评论
分享