C语言...
分类:
编程语言 时间:
2015-05-12 09:26:21
收藏:
0 评论:
0 赞:
0 阅读:
141
顺序队列的实现,写出给大家分享一下,我不习惯写什么心得,直接贴代码出来供大家分享,共同进步。
1:头文件:Queue.h
#pragma once
#include
#include
#define ElemType int
#define SizeFull 20
typedef struct Queue
{
ElemType *data;
int sizefull;
int fro...
分类:
其他 时间:
2015-05-12 09:26:12
收藏:
0 评论:
0 赞:
0 阅读:
177
题目链接:hdu 5078 Osu!
题面:
Osu!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 1058 Accepted Submission(s): 550
Special Judg...
分类:
其他 时间:
2015-05-12 09:26:02
收藏:
0 评论:
0 赞:
0 阅读:
365
C函数要在程序中用到以下这些宏:
void va_start( va_list arg_ptr, prev_param );
type va_arg( va_list arg_ptr, type );
void va_end( va_list arg_ptr );
va_list:用来保存宏va_start、va_arg和va_end所需信息的一种类型。为了访问变长参...
分类:
编程语言 时间:
2015-05-12 09:25:52
收藏:
0 评论:
0 赞:
0 阅读:
187
Linux6.5发送邮件时,异常postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by
报错信息:
sendmail: warning: inet_protocols: IPv6 support is disabled: Address famil...
分类:
Web开发 时间:
2015-05-12 09:25:47
收藏:
0 评论:
0 赞:
0 阅读:
387
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:
其他 时间:
2015-05-12 09:25:47
收藏:
0 评论:
0 赞:
0 阅读:
265
确定比赛名次
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 14854 Accepted Submission(s): 5929
Problem Description
有N个比赛队(1
Input...
分类:
编程语言 时间:
2015-05-12 09:25:40
收藏:
0 评论:
0 赞:
0 阅读:
209
Airport Express
In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are two types of trains in Airport-Express, t...
分类:
其他 时间:
2015-05-12 09:25:17
收藏:
0 评论:
0 赞:
0 阅读:
227
C++解析JSON(jsonCpp)JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于JavaScript(Standard ECMA-262 3rd Edition - December 1999)的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C, C++, C#, Java, JavaScript,...
分类:
编程语言 时间:
2015-05-12 09:25:11
收藏:
0 评论:
0 赞:
0 阅读:
219
Fence Repair
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 29658
Accepted: 9643
Description
Farmer John wants to repair a small length of the fence aroun...
分类:
其他 时间:
2015-05-12 09:24:56
收藏:
0 评论:
0 赞:
0 阅读:
253
简单弹幕实现...
分类:
其他 时间:
2015-05-12 09:24:45
收藏:
0 评论:
0 赞:
0 阅读:
188
POJ2891 ,Strange Way to Express Integers,线性同余方程组,数论
Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following:
Choose k different positive integers a1, a2, …, ak. For so...
分类:
其他 时间:
2015-05-12 09:24:41
收藏:
0 评论:
0 赞:
0 阅读:
182
题目传送:Find them, Catch them
思路:用一个关系数组记录当前结点与其父亲的关系,0表示同类,1表示不同类
AC代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include ...
分类:
其他 时间:
2015-05-12 09:24:29
收藏:
0 评论:
0 赞:
0 阅读:
128
package com.socket;import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostE...
分类:
编程语言 时间:
2015-05-12 09:24:25
收藏:
0 评论:
0 赞:
0 阅读:
156
A Famous Grid
Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1562 Accepted Submission(s): 603
Problem Description
Mr. B has recent...
分类:
其他 时间:
2015-05-12 09:24:20
收藏:
0 评论:
0 赞:
0 阅读:
253
Nightmare
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8125 Accepted Submission(s): 3896
Problem Description
Ignatius had a night...
分类:
Web开发 时间:
2015-05-12 09:23:41
收藏:
0 评论:
0 赞:
0 阅读:
294
题意:n个糖果,两个人 Petra,Jan,每个糖果对于这两个人都有一定的val值,Petra每次选对于自己val值最大的那个,如果一样,就选Jan的val值小的,Jan想让自己选的糖果的val值之和最大,如果有多种路径,那么就选使Petra最后的val最大的那种(真是好基友,好丽友。。 = =),告诉你先手,轮着来。问你最后他们两个的分别得val值之和。
思路:贪心。先按照Petra的顺序两人逐个选取,就会得到两组,一组是Petra的,一组是Jan的,然后再倒着来,对于每个Jan选取的糖果,对于当前点再...
分类:
其他 时间:
2015-05-12 09:23:32
收藏:
0 评论:
0 赞:
0 阅读:
216
manacher+后缀数组~...
分类:
Windows开发 时间:
2015-05-12 09:23:02
收藏:
0 评论:
0 赞:
0 阅读:
240
易错的树形Dp~...
分类:
Windows开发 时间:
2015-05-12 09:22:51
收藏:
0 评论:
0 赞:
0 阅读:
421
易错的思路题+topsort~...
分类:
其他 时间:
2015-05-12 09:22:41
收藏:
0 评论:
0 赞:
0 阅读:
229