2010年3月25日

输入输出模板

摘要: #include <stdio.h>int main(){ freopen("slyar.in", "r", stdin); freopen("slyar.out", "w", stdout); /**//* 中间按原样写代码,什么都不用修改 */ fclose(stdin); fclose(stdout); return 0;} 阅读全文

posted @ 2010-03-25 18:04 草头菜 阅读(149) 评论(0) 推荐(0) 编辑

poj 2742

摘要: 此poj乃http://poj.grids.cn两次AC,没注意到输入的行间有空格。认真读题,认真读题。磨刀不误砍柴工,每道题题干要读三遍!!!#include<stdio.h>int main(){ int i,n,c[30],max,u; char ch; scanf("%d",&n); getchar(); while(n--) { for(i=0;i<26;i+... 阅读全文

posted @ 2010-03-25 16:39 草头菜 阅读(172) 评论(0) 推荐(0) 编辑

导航