2020级计算机专业《编程思维与实践》习题集解答(第一次过了就摸了)
有问题可以评论或者加我QQ478985071提出,感谢! 习题集链接: https://acm.ecnu.edu.cn/contest/365/ 本文将收录习题集中所有习题的题解,更新看心情,学期前更完,题号按照顺序排序,点目录直达。 1001. 进制转换 https://acm.ecnu.edu.cn/contest/365/problem/1001/ 题解 这题还用题解? 10转n进制,短除法 …
有问题可以评论或者加我QQ478985071提出,感谢! 习题集链接: https://acm.ecnu.edu.cn/contest/365/ 本文将收录习题集中所有习题的题解,更新看心情,学期前更完,题号按照顺序排序,点目录直达。 1001. 进制转换 https://acm.ecnu.edu.cn/contest/365/problem/1001/ 题解 这题还用题解? 10转n进制,短除法 …
1061. Sort Students /* */ /* DON'T MODIFY main function ANYWAY! */ /* */ /***************************************************************/ // ********** Specification of STUDENT ********** // No. …
1055. 集合交集 int Intersection(int s1[],int n1,int s2[],int n2,int r[]){ /* PreCondition: 集合元素存放在s1,s2中;n1, n2分别为两个集合大小 PostCondition: s1和s2的交集存放在r中,元素按由小到大存放;返回交集中元素个数 */ } int main() { int n1,n2,i; int …
1051. 矩阵乘法 //********** Specification of multiply ********** void multiply(int (*A)[N], int (*B)[N], int (*C)[N],int n); /* PreCondition: A, B, and C are addresses of three matrices and n (n<=N) is …
本篇文章将包含面向对象Java第六次作业 源码在文章底部下载
1048. 骰子点数之和问题 //********** Specification of Combination ********** double probability(int n, int k); /* Precondition: n和k为整数 Postcondition: 返回n个骰子同时扔后点数之和为k的概率 */ double probability(int n, int k) { / …
1044. grade Finish the definition of the following function which computes the grades of n students for a course given their scores. #include <stdio.h> void grade(int score[], int n, char grade[ …
1039. DisplayBinary Input an integer, and output its binary counterpart. For example, binary for -10 is -1010B. 输入格式 An integer in range [LONGLONG_MIN, LONGLONG_MAX]. 输出格式 Binary counterpart ending wi …
本篇文章将包含面向对象Java第五次作业 源码在文章底部下载