【题解】【PTA

您所在的位置:网站首页 雪的缩写字母 【题解】【PTA

【题解】【PTA

2023-11-27 00:14| 来源: 网络整理| 查看: 265

【PTA】【878真题】浙江大学软件学院878自命题2019真题

Alexander Kaiser: 10题是不是有问题 p是指针数组 赋值不应该是p[0]吗

【PTA】【数据结构与算法】AVL树

2301_81045780: For a sequentially stored linear list of lengthN, which of the following operations has the time complexityO ( 1 )? A. visit thei-th (1≤i≤N) node and find the immediate predecessor of thei-th (2≤i≤N) node B. insert a new node after thei-th (1≤i≤N)node C. delete thei-th (1≤i≤N)node D. sort the N nodes in increasing order

【题解】【PTA-Python题库】第1章-2 从键盘输入三个数到a,b,c中,按公式值输出 (30 分)

2301_78243210: a=int(input()) b=int(input()) c=int(input()) print(b*b-4*a*c) 这样写可以吗~

【题解】【PTA-Python题库】第6章函数-2 使用函数求素数和 (20 分)

Tuenity: 前面把不是素数的排除了,然后还剩下1和素数,因为1不是素数,所以需要特判一下

【题解】【PTA-Python题库】第6章函数-2 使用函数求素数和 (20 分)

awaiiii: if(num!=1): return True 大佬,这里是什么意思呀,不等于1就返回是素数了嘛,不是得同时满足嘛



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3