上一页 1 ··· 8 9 10 11 12

2015年1月30日

摘要: 注: 1. 对于double计算,一定要小心,必要时把与double计算相关的所有都变成double型。 2.for (int i = 0; i 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int num[55... 阅读全文
posted @ 2015-01-30 15:59 Oliver-cs 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 int main() 5 { 6 int a, b, c; 7 cin >> a >> b; 8 while(b != 0) { 9 c = a % b;10 ... 阅读全文
posted @ 2015-01-30 11:59 Oliver-cs 阅读(386) 评论(0) 推荐(0) 编辑

2015年1月27日

摘要: 注意: int N; cin >> N; cin.ignore(); 同于 int N;scanf("%d\n",&N);另:关于 cin 与 scanf:scanf是格式化输入,printf是格式化输出。cin是输入流,cout是输出流。效率稍低,但书写简便。格式化输出效率比较高,但是写代码... 阅读全文
posted @ 2015-01-27 20:08 Oliver-cs 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 注意: for (int i = 1; i 2 #include 3 #include 4 using namespace std; 5 6 int main() { 7 string aaa; int sum = 0; 8 while (getline(cin... 阅读全文
posted @ 2015-01-27 18:04 Oliver-cs 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 注意代码中: result1 2 #include 3 const int maxn = 15; 4 using namespace std; 5 6 double score[maxn]; 7 8 int sCount (double i, double j) { 9 do... 阅读全文
posted @ 2015-01-27 17:27 Oliver-cs 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 下次不要被长题目吓到,其实不一定难。先看输入输出,再揣测题意。原文:2548. Celebrity jeopardyTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 1306 Accepted Runs: 898It's hard to... 阅读全文
posted @ 2015-01-27 12:08 Oliver-cs 阅读(197) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12

导航