01. Delphi - PhotoManager.rar02.Delphi - 大杀器.rar03.Delphi - 简单模拟考试系统.rar04.Delphi - 系统安全管理007.rar05.VB - MiniClock.rar06.VB - 窗口侦探.rar07.VB - 文件夹放心锁.r...
分类:
其他好文 时间:
2014-08-15 12:46:08
阅读次数:
212
题意 给两堆牌s1,s2交给你洗 每堆有c张 每次洗牌得到s12 其中s2的最下面一张在s12的最下面一张然后按顺序一张s1一张s2 洗好之后可以把s12下面的c张做s1 上面的c张做s2 求多少次洗牌之后可以得到输入给你的串s 不能得到输出-1
简单模拟 s1+s2!=s就一直洗牌 如果回到初始状态都没得到s就不会得到s了 得到s就可以输出洗牌次数了...
分类:
其他好文 时间:
2014-08-15 10:46:28
阅读次数:
353
题意 汽车通过渡船过河 渡船开始在左边 输入按车辆来的顺序输入河两岸的车 渡船每次运输的汽车的总长度不能超过渡船自己本身的长度 先来的车先走 求轮船至少跨河多少次才能将所有的车辆都运完
简单模拟 建两个队列 分别装左边的车 和右边的车 算出两边各至少需要运输多少次就行了
#include
#include
#include
using namespace std;...
分类:
其他好文 时间:
2014-08-15 00:04:16
阅读次数:
277
Description
Before bridges were common, ferries were used to transport cars across rivers. River ferries, unlike their larger cousins, run on a guide line and are powered by the river's current. Ca...
分类:
其他好文 时间:
2014-08-14 20:34:49
阅读次数:
349
题意:有两堆牌s1,s2,牌数都为c,将s2,s1按给定规则相互交叉组成一堆牌s12,
再将s12最底下的c块给s1,最顶端的c块给s2,依此循环下去,
现在输入s1和s2的初始状态 以及 预想的最终状态s12,
问s1 s2经过多少次洗牌之后,最终能达到状态s12,若永远不可能相同,则输出"-1"。
分析:直接简单模拟此规则就行,关键是如何判断是否永远不可能达到预想的s12,
若s1和s2在洗牌后的状态,是前面洗牌时已经出现过的一个状态,且这个状态不是预想的状态S12,
就说明无论怎样再洗牌都不可能达到S...
分类:
其他好文 时间:
2014-08-12 17:17:24
阅读次数:
249
题目又来了string的基本用法//less than 30 digits//等级长度甚至是超过了int64,所以要用字符串来模拟,然后注意去掉前导零//最多重复的个数就是答案//关于string的修改增加的用法#include #include#include #include #includeu...
分类:
其他好文 时间:
2014-08-06 17:23:51
阅读次数:
171
Codeforces Round #259 (Div. 2) (简单模拟实现题)...
分类:
其他好文 时间:
2014-08-02 20:59:54
阅读次数:
306
The Great PanTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1035Accepted Submission(s): 355Proble...
分类:
其他好文 时间:
2014-07-31 23:22:10
阅读次数:
353
之前写了Spring的实现原理,今天我们接着聊聊Hibernate的实现原理,package com.tgb.hibernate;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import...
分类:
系统相关 时间:
2014-07-25 11:14:55
阅读次数:
343
I-number
Time Limit: 5000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
The I-number of x is defined to be an integer y, which satisfied the the conditions below:
1. y>x;
2. the sum of each...
分类:
其他好文 时间:
2014-07-20 23:24:13
阅读次数:
298