Arbitrage
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 16429 Accepted: 6909
Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a ...
分类:
其他 时间:
2015-01-26 17:08:29
收藏:
0 评论:
0 赞:
0 阅读:
201
Painter's Problem
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
There is a square wall which is made of n*n small square b...
分类:
其他 时间:
2015-01-26 17:08:19
收藏:
0 评论:
0 赞:
0 阅读:
257
JUnit4是JUnit框架有史以来的最大改进,其主要目标便是利用Java5的Annotation特性简化测试用例的编写。
先简单解释一下什么是Annotation,这个单词一般是翻译成元数据。元数据是什么?元数据就是描述数据的数据。也就是说,这个东西在Java里面可以用来和public、static等关键字一样来修饰类名、方法名、变量名。修饰的作用描述这个数据是做什么用的,差不多和publ...
分类:
其他 时间:
2015-01-26 17:07:59
收藏:
0 评论:
0 赞:
0 阅读:
288
#include
#define uchar unsigned char
#define uint unsigned int
sbit rs=P3^5;
sbit lcden=P3^4;
sbit dula=P2^6;
sbit wela=P2^7;
uchar table1[]="TX-51STAR MCU";
uchar table2[]="WWW.TXMCU.COM";
void delay...
分类:
其他 时间:
2015-01-26 17:07:29
收藏:
0 评论:
0 赞:
0 阅读:
306
1. VirtualRecentService.java
package com.jianli.virtualrecent;
import java.lang.reflect.Field;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Service;
impor...
分类:
其他 时间:
2015-01-26 17:07:09
收藏:
0 评论:
0 赞:
0 阅读:
357
Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection ...
分类:
其他 时间:
2015-01-26 17:06:59
收藏:
0 评论:
0 赞:
0 阅读:
278
对于使用表单身份验证的 web 网站来说 , 用户通过访问登录页面并输入自己的凭据来登录网站。系统会将用户输入的凭据与数据库中的内容相对比。如果凭据有效,则会授予该用户一个表单身份验证票证,该票证是一个安全令牌,用以指示该访问者的身份标识和真实性。
本文实例说明怎样吧验证工作委托给已配置的 Membership 提供者。...
分类:
其他 时间:
2015-01-26 17:06:29
收藏:
0 评论:
0 赞:
0 阅读:
319
Transfer water
Time Limit: 5000/3000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)
Total Submission(s): 3964 Accepted Submission(s): 1424
Problem Description
XiaoA lives in ...
分类:
其他 时间:
2015-01-26 17:06:20
收藏:
0 评论:
0 赞:
0 阅读:
327
MessageBox这个函数可以在VC里面显示一个标准对话框,是比较常用的一个信息对话框,其不仅能够定义显示的信息内容、信息提示图标,而且可以定义按钮组合及对话框的标题,是一个功能齐全的信息对话框。
函数原型及参数
int MessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT, uType);
参数含义:
HWND ...
分类:
其他 时间:
2015-01-26 17:06:00
收藏:
0 评论:
0 赞:
0 阅读:
273
这次马踏棋盘是用递归实现的,而且可以弄出来所有解,当时电脑跑的最快的都有40多万解了,这个也可以看你电脑cpu好坏,一般超级本跑不动。这是实际上和八皇后是同一种性质的问题,都用到了回溯的思想,有接进行下一个,不行了退回去,在进行尝试。不多说了,直接上代码;
#include
#include
#include
#define N 8
int cnt=1; // 记录马的位置
i...
分类:
其他 时间:
2015-01-26 17:05:09
收藏:
0 评论:
0 赞:
0 阅读:
372
八皇后的问题和马踏棋盘的思路是一样,都用到了回溯的思想。代码也都差不多。这个里面最精彩的地方用4个一位数组表示了这个棋盘。这个里面总共有92组解
代码展示
#include
#include
int col[8]={0};
int right[15]={0};
int left[15]={0};
int Queen[8];
i...
分类:
其他 时间:
2015-01-26 17:04:59
收藏:
0 评论:
0 赞:
0 阅读:
281
Problem I
23 Out of 5
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Your task is to write a program that can decide whether you can find an arithmetic ex...
分类:
其他 时间:
2015-01-26 17:04:40
收藏:
0 评论:
0 赞:
0 阅读:
193
头文件:#include #include
定义函数:int setsockopt(int s, int level, int optname, const void * optval, ,socklen_toptlen);
函数说明:
s :setsockopt()用来设置参数s 所指定的socket 状态.
level :参数level 代表欲设置的网络...
分类:
其他 时间:
2015-01-26 17:04:09
收藏:
0 评论:
0 赞:
0 阅读:
475
How Big Is It?
Ian's going to California, and he has to pack his things, including his collection of circles. Given a set of circles, your program must find the smallest rectangular box in...
分类:
其他 时间:
2015-01-26 17:03:50
收藏:
0 评论:
0 赞:
0 阅读:
310
题目大意:公主要求王子通过第k短的路径去找她。给出了N个点,M条单向边的图。也给出了
起点s(王子所在的点)、终点t(公主所在的点)和k。问:K短路是多少。
思路:第一次做K短路的题目。用的A*+SPFA来做的。下边简单说下这个算法。
使用链式前向星存储图。安装下边步骤来做。
(1)将有向图的所有边正向、反向分别存入两个不同的边集(Edges,Edges1)中。用反向边集,
以所求终点t为源点,利用SPFA或Dijkstra求解出所有点到t的最短路径,用Dist[i]数组来表示点i
到点t的最短距离。
(2...
分类:
其他 时间:
2015-01-26 17:03:33
收藏:
0 评论:
0 赞:
0 阅读:
293
题目:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
我的解法:
(1)算法思想:
问题可以...
分类:
其他 时间:
2015-01-26 17:02:39
收藏:
0 评论:
0 赞:
0 阅读:
250
使用Canvas实现画图程序。
本次更新主要实现了一下功能:
虚线实线的选择、辅助线、线条颜色选择、线条宽度选择
进一步整理了下代码,发现了不少很有用的写法,具体看下面。
canvas{
background-color: rg...
分类:
其他 时间:
2015-01-26 17:02:30
收藏:
0 评论:
0 赞:
0 阅读:
493
The Sultan's Successors
The Sultan of Nubia has no children, so she has decided that the country will be split into up to k separate parts on her death and each part will be inherited by...
分类:
其他 时间:
2015-01-26 17:02:19
收藏:
0 评论:
0 赞:
0 阅读:
240
#include
#define set_bit1(x,y) (x|=(0x01L<<y))
#define set_bit0(x,y) (x&=(~(0x01L<<y)))
#define get_bit(x,y) (x&(0x01L<<y))
int main()
{
int pos = 31;
unsigned long bitmap = 0xffffff...
分类:
其他 时间:
2015-01-26 17:01:49
收藏:
0 评论:
0 赞:
0 阅读:
413
申明: 1、本文为真实素材进行小说化改编。 2、主人公的“我”和本文作者没有太大关系,请勿生搬硬套。 3、本文背后的含义大家可以自行猜想,不点透 4、贺岁文。祝各位程序员羊年高升,领头羊终究是你的菜。 年初,我被公司最光荣、伟大且正确的boss任命为软件开发部---部门副经理。 大家注意这个“副”字,千万不能省略,否则差之毫厘、谬到家都不认识,这也是我最近得出的结论,大家请听我以下分解。(一...
分类:
其他 时间:
2015-01-26 17:01:39
收藏:
0 评论:
0 赞:
0 阅读:
246