摘要: 难点:Q:如何读入多行字符直到文件结束?A:while((c=getchar())!=EOF){ ...} 阅读全文
posted @ 2015-11-18 16:51 Peccavi 阅读(97) 评论(0) 推荐(0)
摘要: 1.Q:如何引用pi的精确值?A:#include int main(){ const double pi = acos(-1.0); ...}2.Q:如何在屏幕上打印出"%d"? What about "\n"?A:printf("%%d");printf("\\n");3.Q:如何为... 阅读全文
posted @ 2015-11-18 14:09 Peccavi 阅读(109) 评论(0) 推荐(0)
摘要: USACO经典的数学模拟题 终于明白了为什么lcxUSACO如此厉害。。。 阅读全文
posted @ 2015-11-18 12:52 Peccavi 阅读(149) 评论(0) 推荐(0)
摘要: 难点:Q: 在题目没有申明有多少组数据时 如何停止读入?A: while(scanf("%d",&n) != EOF){ ...}盲点:有多组数据时 数组记得清零 i.e.#include ...memset(k,0,sizeof(k)); 阅读全文
posted @ 2015-11-18 12:47 Peccavi 阅读(157) 评论(0) 推荐(0)
摘要: 2015.11.28~2015.12.14 这27天 给自己的一个承诺NOI intensive planning:上午刷题库 下午学知识要刷的题库:1. NOI题库(每个section做两道题)2. UVa题库(根据进度走 学以致用)要看的书:1. 算法竞赛入门经典:训练指南2. CP(compa... 阅读全文
posted @ 2015-11-18 12:39 Peccavi 阅读(107) 评论(0) 推荐(0)