搜索资源列表
tony
- 指定一個數字轉換回十進位,八進位,十六進位#include <stdio.h> #include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ printf("十六進位為%x\n",number) /* %x 為
Eular-Engineering
- Euler工程,相邻元素乘积最大。 给了一个20x20的两位数矩阵,其中的红字部分的积为: 26x63x78x14=1788696 那么,任意方向上(上、下、左、右、对角)4个相邻的数的最大乘积是多少?-In the 20x20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 7
paifenshu
- 利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 -Use conditions operator nested to complete the topic: study result > = 90 points with A classmate, said 60-89 points with B between said, below the 60 points with C said.
test1
- 假设有两种微生物 X 和 Y X出生后每隔3分钟分裂一次(数目加倍),Y出生后每隔2分钟分裂一次(数目加倍)。 一个新出生的X,半分钟之后吃掉1个Y,并且,从此开始,每隔1分钟吃1个Y。 现在已知有新出生的 X=10, Y=89,求60分钟后Y的数目。 如果X=10,Y=90 呢? 本题的要求就是写出这两种初始条件下,60分钟后Y的数目。-Suppose of two microbial X and YX split time (dou
Dynamic-Fibonacci
- 动态规划计算斐波那契数(后一个数等于前面两个数的和)1,1,2,3,5,8,13,21,34,55,89,144…… -Dynamic programming computes Fibonacci numbers (after a number equal to the previous two numbers) 1,1,2,3,5,8,13,21,34,55,89,144 ......