andre_joy

导航

随笔分类 -  HDOJ

上一页 1 2 3 4 5 6

hdu 2537
摘要:地址:http://acm.hdu.edu.cn/showproblem.php?pid=2537题意:打台球,一人一次机会(明显不符合实际。。。)mark:扫描一遍~代码:#include <stdio.h>int main(){ int t,i,r,y,f; char a[20]; while(scanf("%d", &t), t) { scanf("%s", a); r = y = 7; for(i = f = 0; a[i]; i++) { if(a[i] == 'R') r--; ... 阅读全文

posted @ 2012-06-30 19:51 andre_joy 阅读(88) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6