题目连接:http://poj.org/problem?id2388 Whos in the MiddleTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 22478 Accepted: 12864 Description FJ is surveying his herd to find the most average cow. He wants to know how much milk this medi…
题目链接:http://poj.org/problem?id2262 Goldbachs ConjectureTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 28046 Accepted: 10797 Description In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler …
以下代码加入HTML的<body>区: <script language"javascript">
<!-- Begin
function chk(email, formname)
{
invalid ""; if (!email)
invalid "请输入您的Email地址。"; else { if ( (email.indexOf("&q…
Stars Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 22828 Accepted: 9949 题目链接:http://poj.org/problem?id2352
Description
Astronomers often examine star maps wherestars are represented by points on a plane and each star has…
Stockbroker Grapevine Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20810 Accepted: 11278 题目链接:http://poj.org/problem?id1125 Description
Stockbrokers are known to overreact to rumours. You havebeen contracted to dev…
Play on Words Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 7173 Accepted: 2519 题目链接:http://poj.org/problem?id1386 Description
Some of the secret doorscontain a very interesting word puzzle. The team of archaeologis…
免费馅饼
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7361 Accepted Submission(s): 2360 Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉…
How many ways
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 549 Accepted Submission(s): 367 Problem Description这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的…
用shell写了个递归遍历目录的脚本,本脚本实现递归遍历指定目录,打印目录下的文件名(全路径)。不为别的,就为了以后用着方便。
#!/bin/sh function scandir() { local cur_dir parent_dir workdir workdir$1 cd ${work…
题目链接:http://poj.org/problem?id1152 An Easy Problem!Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7708 Accepted: 1847 Description Have you heard the fact "The base of every normal number system is 10" ? Of course, I am…
COURSES Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 13861 Accepted: 5481 题目链接:http://poj.org/problem?id1469
Description
Consider a group of N students and P courses.Each student visits zero, one or more than one courses…
相关表cm_css(id b c font1 title)
cm_txt( id title money url alt yds okok otype tfl display addtime)文字广告,标题title,文本alt,网址url
username (id Username Psw txt_xs) 计数
txtad.jsp
<% page language"java" import"java.util.*,java.m…
Entropy
Time Limit:1000MS Memory Limit:65536K Total Submit:23 Accepted:13
Description
An entropy encoder is a data encoding method that achieves lossless data compression by encoding a message with “wasted” or “extra” information removed. In other w…
在工作中,有些帐户的密码总是定期改变的,例如一些公用的测试帐号。
例如SQL Server上的一些帐户,前提是你已经安装了SQL Server,并且帐户是这个SQL Server的合法用户 1. run cmd
2. type command: runas /?
3. Click Enter key
4. go bottom and se…
最近由于总需要在教固定ip和动态获取ip这两种网络环境下切换,所以干脆写了个批处理的脚本,自动实现切换功能。不废话了,贴代码: echo off:headecho "Usage:Input 0 to change ip setting to auto mode; 1 changes ip setting…
Agri-Net Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 28121 Accepted: 11149 题目链接:http://poj.org/problem?id1258
Description
Farmer John has been electedmayor of his town! One of his campaign promises was to bring internet…
javascript来判断客户端文件的大小<HTML><HEAD>
<SCRIPT>function getFileSize (fileName) { if (document.layers) { if (navigator.javaEnabled()) { var file new java.io.File(fileName); if (location.protocol.toLowerCase() ! file:) net…
Problem Description任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)1;F(2)2;F(n)F(n-1)F(n-2)(n>3);所以,1,2,3,5,8,13……就是菲波那契数列。在HDOJ上有不少相关的题目,比如1005 Fibona…
<% page contentType"image/jpeg" import"java.awt.*,
java.awt.image.*,java.util.*,javax.imageio.*" %>
<%!
Color getRandColor(int fc,int bc){//给定范围获得随机颜色
Random random new Random();
if(fc>255) fc255;
if(bc>2…
验证角谷猜想
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1825 Accepted Submission(s): 930 Problem Description数论中有许多猜想尚未解决,其中有一个被称为“角谷猜想”的问题,该…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns"http://www.w3.org/1999/xhtml"><head><title>JavaScript全选与反选</t…
jquery 文本框得到焦点,给表单的文本框设置初始值,当鼠标点击输入的时候,文本自动消失,用户可又输入数据,想知道jQuery是如何获取文本框得到失去的焦点吗?那么您就看这个例子吧。 <!DOCTYPE html PUBLIC…
python 简明教程上没有windows下备份文件的例子,于是我修改了一下: # Filename: backup_ver1.pyimport os
import time# 1. The files and directories to be backed up are specified in a list.
source rD:\pythonfile\test# 2. The backup must be s…
REPORT ztest.TABLES:eina.SELECT-OPTIONS:s_matnr FOR eina-matnr OBLIGATORY.START-OF-SELECTION. WRITE:the value of s_mater-low:,s_matnr.
在上述简单的例子中,因为数据元素matnr的domain有个转化程序
CONVERSION_EXIT_MATN1_INPUT
在报表进入start-of-selection模…
Attaching Smartform to the standard transaction!
1,找到配置消息的事务码,例如采购和销售的NACE,生产和财务的用另外的事务码,可以通过spro找到
2,修改output type-processing routines-program,routines. in program adding the processsing rout…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv"Content-Type" content"text/html; charsetutf-8"> <title>图片随机飘动代码生成器</title> <style…
通用版本(不依赖任何类库)functionGetCheckBoxListValue(objID) ...
{ var v new Array(); var CheckBoxList document.getElementById(objID); if(CheckBoxList.tagName "TABLE") ...{ for(i0;i<CheckBoxList.rows.length;i) for(j…
题目链接:http://poj.org/problem?id1730 Perfect Pth PowersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13099 Accepted: 2990 Description We say that x is a perfect square if, for some integer b, x b2. Similarly, x is a perfect cube …
收藏http://www.ajaxbbs.net/test/wz_jsgraphics/index.htm 确实很强大
下来研究研究
JS /* This notice must be untouched at all times.wz_jsgraphics.js v. 3.03
The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://…
The Perfect Stall Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14473 Accepted: 6621 题目链接:http://poj.org/problem?id1274 Description Farmer John completed his new barn just last week, complete with all the latest milking tec…
过山车
Time Limit:1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K(Java/Others) Total Submission(s): 5197 Accepted Submission(s): 2292
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid2063
Problem Description
RPG girls今天和大…
还要研究一下jQuery。
script.js$(document).ready(function(){$(#checkAll).click(function(){updateCheckBoxStatus(this);});}function updateCheckBoxStatus(currentCheckBox){ var statecurrentCheckBox.checked; var parentTablesjQuery(currentCheckBox).parent…
转自:http://www.52rd.com/blog/Detail_RD.Blog_hecrics_16066.html 以前从来没看到过,更别说用了,是不是大家都很少用呢? int setjmp( jmp_buf env );void longjmp( jmp_buf env, int value );# setjmp(j)设置“jump”点&…
可以根据是否隐藏来实现导出功能,如果隐藏则不导出。 主要代码: [codeJScript]//指定页面区域“单元格”内容导入Excel function CellAreaExcel() { var oXL new ActiveXObject( "Excel.Application "); var oWB oXL.Workbo…
在项目开发中,遇到这样的问题:A、B两个输入框,要求B输入框输入完的值不能大于A输入框的值,如果大于,则要求弹出提示后恢复为修改前的值。 在网上查资料后如下代码解决: ...
var current $(this)[0].conten…
<script language"javascript"> ///设置全选 function SelectAllCheckboxes(spanChk,chkboxname){ var oItem spanChk.children; var theBox(spanChk.type"checkbox")?spanChk:spanChk.children.item[0]; xStatetheBox.checked; …
水题,太简单了,就是写代码,想都不用想 Problem DescriptionTo Chinese people, 8 is a lucky number. Now your task is to judge if a number is lucky.We say a number is lucky if it’s a multiple of 8, or the sum of digits that make…
官方例子: SummaryIt may prove beneficial to validate user input within the client-side events. The BeforeExitEditModeHandler allows for a perfect time to validate the the input and "lock" the user on the cell until proper data has been entered.Ad…
Heavy Transportation Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 15487 Accepted: 4026 题目链接http://poj.org/problem?id1797 Description
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can nowex…
Heavy Cargo Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2264 Accepted: 1252 题目链接:http://poj.org/problem?id2263
Description
Big Johnsson Trucks Inc. is acompany specialized in manufacturing big trucks. Their latest model…
Truck History Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 12456 Accepted: 4713 题目链接:http://poj.org/problem?id1789
Description
Advanced Cargo Movement, Ltd.uses trucks of different types. Some trucks are used for vegetab…
Labeling Balls Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7681 Accepted: 2060 题目链接:http://poj.org/problem?id3687
Description
Windy has N balls of distinct weights from 1unitto Nunits. Now he tries to label them with…
Counting Black Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8951 Accepted: 5775 题目链接:http://poj.org/problem?id1656
Description
There is a board with 100 *100 grids as shown below. The left-top gird is denoted as (1, 1) a…
//在Java中使用MessageDigest实现MD5,SHA-1等加密import java.security.*;/** TestEncrypt.java* Description: A test progrm to encrypt a string using MD5 or SHA-1,etc.*/public class MessageEncrypt {public static String Encrypt(String strSrc, String en…
LoginAction.java
public class LoginAction implements Action { //使用类型转换器将字符串请求参数直接转换成一个User实例 private User user; private User customer; private Date birth; //封装Action处理结果的tip属性 private String tip; publ…
SPF Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3790 Accepted: 1727 题目连接:http://poj.org/problem?id1523
Description
Consider the two networks shown below.Assuming that data moves around these networks only between direct…
Gopher II Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5341 Accepted: 2216 题目链接:http://poj.org/problem?id2536
Description
The gopher family, having averted the caninethreat, must face a new predator. The are n gophers …
Selecting Courses Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7144 Accepted: 3141 题目链接:http://poj.org/problem?id2239
Description
It is well knownthat it is not easy to select courses in the college, for there is usually…
备注:分包采购订单里的组件与bom有关。 REPORT ztest_substract_order.DATA:g_ebeln LIKE ekpo-ebeln.g_ebeln 4500789688.CALL FUNCTION CONVERSION_EXIT_ALPHA_INPUT EXPORTING input g_ebeln IMPORTING output g_ebeln.DATA:it_mdpmv LIKE TABLE OF …
Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可…
一个MATLAB 函数的规范化格式实例山城棒棒儿军 07-20 10:58function visfem % Main: Set up data to demonstrate usage of visfem. % visfem: Visualises linear finite element functions on unstructered % triangular grids or bilinears on rectangular grids by differe…
AC(alternating current) 交流(电)ACPI(Advanced Configuration and Power Interface)高级配置电源界面A/D(analog to digital) 模拟/数字转换ADC(analog to digital convertor) 模拟/数字转换器ADM(adaptive delta modulation) 自适应增量调…
转一篇英文的关于LVS应用的文章 Running a Proxy-Arp LVS-NAT Director/Firewall with Keepalived
(C) 2003 Vince Worthington, released under GPL How to have one Linux box be your LVS-NAT director with Keepalived, and be a Proxy-Arp firewall/gateway with Statefu…
要求在一列以及这列表头上加上多选框并在一列上加上链接: 装饰器类(多选框):
需要DisplaytagColumnDecoratorl类:
/** * 用于丰富displaytag列显示的功能,在表格中显示一列checkbox */ public class Chec…
adshost表
id,Username,Password,Site_name,Site_URL,Site_type,Site_desc,Linkname,Email,QQ,MSN,Phone,Company,Address,Postal,Fax
以下是原sql语句.
if exists (select * from dbo.sysobjects where id object_id(N[dbo].[Adshost]) and OBJECTPROPERTY(id, NIsUserTab…
import java.io.*;
public class convertToPrintString{ //输入小写转大写,输入大写转小写 public static void main(String[] args) throws IOException { InputStreamReader reader new InputStreamReader(System.in); BufferedRead…
Tangled in Cables Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 4841 Accepted: 1947 题目连接:http://poj.org/problem?id2075
Description
You are the owner of SmallCableCo and have purchased thefranchise rights for a small town.…
Spell checker Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 14190 Accepted: 5226 题目链接:http://poj.org/problem?id1035
Description
You, as a member of a development team for a new spellchecking program, are to write a module…
Highways Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16037 Accepted: 7460 题目链接:http://poj.org/problem?id2485
Description
The island nation of Flatopiais perfectly flat. Unfortunately, Flatopia has no public highways. So…
IntroductionHave you ever wondered how you can integrate your code under the PUBLIC tree in Windows Embedded CE 6.0? This can be useful if you want to distribute code/components that are not part of a BSP. In this post I’ll explain how to create a folder…
1、 农场计数问题(20分) 问题描述:
已知某农场中有一群鸡和兔子,总共有M个头和N只脚,计算总共有多少鸡和兔子 要求实现函数: int GetFowlsNum(int iHeadNum, int iFootNum, int *iChickenNum, int *iRabbitNum) 【输入】iHeadNu…
/* 伪代码: Input: 表L, 表的长度n, 步长s, 元素x Output: x所在的位置 Algorithm QS(L, M, N, S, X) //在长度为N的有序表中以S为步长,查找X所在的位置 begin m:s m; while m<n do case x L(m); return m; x < L(m); QS(L, m-k, m-1, s/2, x);…
init > handle_device_fd 收到uevent信息 > handle_device_event >
static void handle_device_event(struct uevent *uevent){.../* are we block or char? where should we live? */if(!strncmp(uevent->path, "/block", 6)) {block 1;base …
获取一组radio被选中项的值 var iten$(input[nameitems][checked]).val();获取select被选中项的文本 var item$("select[nameitems] option[selected]").text();select下拉框的第二个元素为当前选中值 $(#select_id)[0].selectedIndex1;radio单选组的第二个元素为当前…
serialcom1.c: 在函数‘set_opt’中:serialcom1.c:136:1: 错误: expected declaration or statement at end of input这是因为大括号的少一个,括号的个数不成对,仔细在出错的函数中查找,即可。
Watchcow Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 4550 Accepted: 1898 Special Judge 题目链接:http://poj.org/problem?id2230
Description
Bessies been appointed thenew watch-cow for the farm. Every night, its her job to wa…
Johns trip Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5455 Accepted: 1774 Special Judge 题目链:http://poj.org/problem?id1041 Description
Little Johnny has got a new car. He decided to drivearound the town to v…
今天在做一个小练习的时候,真的是踩了很多坑,还好最后还是爬出来了,现在分享出来,希望帮到遇到和我一样问题的你,也是避免自己再次踩坑里
报错内容:
Warning: A component is changing a controlled input …
A Bugs Life Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 21871 Accepted: 7142 题目链接:http://poj.org/problem?id2492
Description
Background Professor Hopper is researching the sexual behavior of a rare species of bugs.He a…
Arbitrage Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10954 Accepted: 4608 题目链接:http://poj.org/problem?id2240
Description
Arbitrage is the use of discrepancies in currencyexchange rates to transform one unit of a curren…
Ugly Windows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 822 Accepted: 228 题目链接:http://poj.org/problem?id3923
Description
Sheryl works for a softwarecompany in the country of Brada. Her job is to develop a Windows opera…
B - Build TheElectric System
Crawling in process...Crawlingfailed Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu
Submit Status
题目连接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode2966
Descr…
Counting Black Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8951 Accepted: 5775 题目链接:http://poj.org/problem?id1656
Description
There is a board with 100 *100 grids as shown below. The left-top gird is denoted as (1, 1) a…
Channel Allocation Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9669 Accepted: 4919 题目链接:http://poj.org/problem?id1129 Description
When a radio station is broadcasting over a very largearea, repeaters are used to retransm…
DistributingBallot Boxes
Time Limit: 20000/10000 MS (Java/Others) Memory Limit:65536/32768 K (Java/Others) Total Submission(s): 310 Accepted Submission(s): 154
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid4190
Problem Description
Tod…
预览广告,点击一下显示,在点击隐藏<script>
function showframe(id){if( document.getElementById("picframe_"id).style.display"none"){document.getElementById("picframe_"id).style.display"";}else{docum…
/*获得TEXT.AREATEXT的值*/ var textval $(”#text_id”).attr(”value”); //或者 var textval $(”#text_id”).val(); /*获取单选按钮的值*/ var valradio $(”input[typeradio][checked]“).val(); /*获取一组名为(items)的radio被选中项的值*/ var item $(’input[nam…
• Appendstructures• Customizing includes (“CI includes”) se11-edit-include-insert,input the name of structure.
in table ,automaticlly created a field named .INCLUDE. in program,you can use it,as follows DATA:g_include_insert LIKE ztest_tab-material.…
1,通过vofm,maintain requirments formulas choose the formulas options,-condition values,input the new routine number,when you save it, then you can access it by access key. applying it in service.sap.com after the process,the appli…
Freckles Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5248 Accepted: 2720 题目:http://poj.org/problem?id2560
Description
In an episode of the Dick VanDyke show, little Richie connects the freckles on his Dads back to form ap…
S3C2410的I/O口,datasheet上P266上面有这样一段话:
PORT PULL-UP REGISTER (GPBUP-GPHUP)The port pull-up register controls the pull-up resister enable/disable of each port group. When the correspondingbit is 0, the pull-up resister of th…
安装Add jcaptcha-all.jar (provided in
bin-distribution) and ehcache.jar (not provided see
ehcache site) to your application class path, ie in you WEB-INF/lib folder.实例一个jcaptcha服务,注意,必须是单例模式的importcom.octo.captcha.se…
一、函数input()的工作原理
函数inpu()让程序暂停运行,等待用户输入一些文本。
message input("Tell me something,and I will repeat it back to you: ")
print(message)
结果: 用户看到提示Tell me something,and I will repeat it back…
关于MD5的C++源码,请参考我的另外一篇文章:MD5的C++源码 md5c.h: /* POINTER defines a generic pointer type */
typedef unsigned char * POINTER;/* UINT2 defines a two byte word */
//typedef unsigned short i…
首先必须说的是IE6真得很垃圾,存在太多让人意想不到的bug,但是他主流所以没办法。 1. 首先是position:fixed属性,在ie6中没有这个属性,所以需要在ie6中实现可以有2种方式: a. js方式实现,这样的…
下面的所有环境都在在REDHAT LINUX9下试验的在LINUX中,要使转义符生效,需加参数-e从echo的变量开始说起如:e c h o命令输出转义符以及变量。 # echo -e "/007your home is $HOME , you are connected on tty"your home is /root …
如果你的服务器的另一端返回的信息已经是 HTML 了,那么使用这个程序包中
Ajax.Updater 类将使你的生活变得更加得容易。用它你只需提供哪一个元素需要被 AJAX 请求返回的 HTML 填充就可以了,例子比我写说明的更清楚:
<script>functio…