疯狂的指针
疯狂的指针
全部文章
未归档
C/C++(10)
c语言(1)
git(1)
Git教程(2)
IO模型(1)
leetcode(18)
LeetCode题解(3)
Linux(7)
PLC(3)
Python(7)
socket(1)
中国(2)
其他(1)
冒泡排序(1)
动态规划(6)
回溯法(1)
回溯法基础(3)
快速排序(1)
接口(2)
数据结构(5)
树状数组(1)
浙大PAT-A题目集(30)
浙大PAT-B题目集(23)
深入学习C++(14)
生物(1)
程序员升职记(10)
笔试(2)
经济学人(6)
英语学习(1)
读书笔记(3)
谷歌(1)
归档
标签
去牛客网
登录
/
注册
Vincent's Blog
全部文章
/ 未归档
(共187篇)
笔试题(二)
笔试题(二) 题目1 给定一个正整数n,求满足i+j=n的质数对的个数。比如10,有两组(i,j)满足条件,分别为(3,7)、(5,5)。 样例输入: 10 样例输出 2 程序代码: #include<stdio.h> #include<math.h> i...
2016-09-12
0
418
笔试题(一)
笔试题(一) 输入一个正整数n(n<=100),按照规定格式打印出来。输出只包含数字、*号和换行符。不允许多余的空格。 样例输入: 5 样例输出 1 3*2 4*5*6 10*9*8*7 11*12*13*14*15 程序代码: #include<stdio.h> ...
2016-09-12
0
467
PAT-A 1078. Hashing
1078. Hashing The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the ...
2016-08-14
0
462
PAT-A 1090. Highest Price in Supply Chain
1090. Highest Price in Supply Chain A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyone involved in moving...
2016-08-14
0
696
PAT-A 1009. Product of Polynomials
1009. Product of Polynomials This time, you are supposed to find A*B where A and B are two polynomials. Input Specification: Each input file contai...
2016-08-13
0
400
图的邻接表表示及其BFS遍历
图的邻接表表示及其BFS遍历 有下面这张图: 假设该图为有向图,边的指向均为小序号指向大序号。那么对该图的BFS遍历如下(假设从序号0的节点开始遍历): 遍历结果应为: a b f c g i d e h BFS遍历类似于树的层序遍历,需要用到队列。下面是程序代码: 1....
2016-08-09
0
415
图的邻接表表示及其DFS遍历
图的邻接表表示及其遍历 1.图的结构定义 #define MAXVEX 100 #define true 1 typedef char VertexType; //定义图节点值得类型,可随意更换 typedef int EdgeType; typedef st...
2016-08-08
0
519
PAT-B 1055. 集体照
1055. 集体照 拍集体照时队形很重要,这里对给定的N个人K排的队形设计排队规则如下: 每排人数为N/K(向下取整),多出来的人全部站在最后一排; 后排所有人的个子都不比前排任何人矮; 每排中最高者站中间(中间位置为m/2+1,其中m为该排人数,除法向下取整); 每排其他人以...
2016-08-03
0
487
PAT-B 1007.素数对猜想
#1007. 素数对猜想 让我们定义 d n d_n ...
2016-08-03
0
393
PAT-A 1099. Build A Binary Search Tree
1099. Build A Binary Search Tree A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left ...
2016-08-03
0
501
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页