#1075

1075 链表元素分类 (25 分)

给定一个单链表,请编写程序将链表元素进行分类排列,使得所有负值元素都排在非负值元素的前面,而[0,K]区间内的元素都排在大于K的元素前面。但每一类内部元素的顺序是不能改变的。例如:给定链表为18→7→-4→0→5→-6→10→11→-2,K...
代码星球 代码星球·2020-04-08

1075. PAT Judge (25)

TheranklistofPATisgeneratedfromthestatuslist,whichshowsthescoresofthesubmittions.ThistimeyouaresupposedtogeneratetheranklistforPAT.InputSpecification:Eachinputf...
代码星球 代码星球·2020-04-08

FOJ 1075

#include<stdio.h>#include<iostream>usingnamespacestd;inta[8000]={2,3};inthash[80000]={0};voidfunc(){inti,j,k=2,flag;hash[2]=hash[3]=1;for(i=5;k<7...
代码星球 代码星球·2020-04-05

HDOJ 1075

字典树98909742013-12-2515:31:06Accepted1075468MS59832K1342BG++泽泽 1#include<stdio.h>2#include<cstring>3#include<cstdlib>4structnode5{6node*ne...
代码星球 代码星球·2020-04-05
首页上一页12下一页尾页