摘要:
You just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2. InputIn each case, there is an odd positive integer n.OutputPrint the sum. Ma 阅读全文
摘要:
Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. “Look, I've built a wall!” 阅读全文
摘要:
题目大意: 对已经排好的顺序(由小到大),插入一个数字。输出也是由小到大。 输入:3 3 1 2 4 输出:1 2 3 4 代码如下: #include<iostream>using namespace std;int num[1000];int main(){ int n, m; while (s 阅读全文
摘要:
动态规划的题型中要抽象出递归相类似的表达式。动态规划,给我的感觉就是一个存表和查表操作,而且这两个操作在物理和逻辑上是连续的。 Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popul 阅读全文