In many manufacturing industries it is a need to print or mark the brand name, seal or other particulars on a product, so it uses the marking techniqu...
分类:
其他好文 时间:
2014-08-19 10:35:03
阅读次数:
255
一、添加购物车1、获得商品id提交到servlet程序2、根据id获取product对象3、判断seesion中是否有存在购物车session。没有的话表示 添加的第一件商品 需要先创建session;有的话直接在session里添加获得的produce(添加product 要先判断session中...
分类:
其他好文 时间:
2014-08-18 23:17:03
阅读次数:
319
题目链接
题意:在实数a,b之间找到一个数c(最多到小数点的后两位),找出存在c = x + y + z = x * y * z,按字典序输出。
思路:先将数都扩大100倍,方便计算。但直接枚举所有情况的话会TLE,所以我们要缩小枚举范围。先枚举x,因为x,y,z要按照非递减顺序,所以x * x * x必须要小于c * 10000,再枚举y,同理可的x * y * y也必须...
分类:
其他好文 时间:
2014-08-18 20:29:42
阅读次数:
254
找到includes\modules\pages\product_reviews\header_php.php$reviews_query_raw = “SELECT r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.review...
分类:
其他好文 时间:
2014-08-18 20:09:02
阅读次数:
202
源端数据库:192.168.1.210sid:orclhostname:NagiostestORACLE_BASE=/u01/app/oracleORACLE_HOME=/u01/app/oracle/product/11.2目标数据库:192.168.1.211sid:orclhostname:OEL6ORACLE_BASE=/u01/app/oracleORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1这里是相同实例名..
分类:
数据库 时间:
2014-08-18 18:48:53
阅读次数:
421
题目:给你一个整数n,求一个数m,使得m的每个位数的乘积是n,求最小的m。
分析:贪心。直接从9到2枚举所有的因数,统计即可。如果还有大于9的素数这输出-1。
说明:今天Timus发邮件,说我的这个题目,在那边的解错了╮(╯▽╰)╭。
#include
#include
#include
using namespace std;
int save[10];
int main()...
分类:
其他好文 时间:
2014-08-18 14:36:42
阅读次数:
266
设计模式-使用php实现工厂方法模式【概要】创建型模式定义一个用于创建对象的接口,让子类决定实例化哪一个类。Factory Method使用一个类的实例化延迟到其子类【GOF95】【结构图】【主要角色】抽象产品(Product)角色:详细产品对象共同拥有的父类或接口详细产品(Concrete Pro...
分类:
Web程序 时间:
2014-08-18 13:03:42
阅读次数:
286
dbca建库后sqlplus提示如下$ sqlplus / as sysdbasqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: c...
分类:
数据库 时间:
2014-08-17 23:59:02
阅读次数:
763
A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts ...
分类:
其他好文 时间:
2014-08-17 18:27:02
阅读次数:
247
oracle11graccrs进程重启时报错1创建rac集群时出现上述错误删除node1机器上的/etc/oracle/scls_scr/rac1/oracle/cssfatal文件运行/u01/app/grid/product/11.2.0/grid/root.sh2rac运行过程中出现上述错误两个节点crs_stop-all如果有unknown进程需要crs_stop-f运行/u01/app/11.2...
分类:
数据库 时间:
2014-08-15 10:53:19
阅读次数:
771