Description
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is
...
分类:
其他好文 时间:
2014-11-14 01:41:58
阅读次数:
245
grub菜单原来内容:
menuentry 'UbuntuKylin GNU/Linux' --class ubuntukylin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-41316a4b-f9b8-46f8-8509-92b330b7feec' {
recordfail
...
分类:
其他好文 时间:
2014-11-13 07:06:11
阅读次数:
157
??????简单工厂模式解释: 简单工厂模式(Simple Factory Pattern)属于类的创新型模式,又叫静态工厂方法模式(Static FactoryMethod Pattern),是通过专门定义一个类来负责创建其它类的实例,被创建的实例通常都具有共同的父类。简单工厂模式的UML图: 简...
分类:
其他好文 时间:
2014-11-12 13:38:39
阅读次数:
220
题目:给你几个数,求使他们同于的最大除数。
分析:数论。取其中两不相同数的差,差值一定是除数的倍数,利用差值枚举除数即可。
说明:小心都是素数的情况,被坑了╮(╯▽╰)╭。
#include
#include
#include
#include
#include
using namespace std;
long long save[1001];
int main()
{
...
分类:
其他好文 时间:
2014-11-11 19:14:16
阅读次数:
222
A simple problem
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3199 Accepted Submission(s): 1164
Problem Description
Zty很痴迷数学问...
分类:
其他好文 时间:
2014-11-11 19:13:46
阅读次数:
180
Sudoku
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 14100
Accepted: 6961
Special Judge
Description
Sudoku is a very simple task. A square table with...
分类:
其他好文 时间:
2014-11-11 09:24:01
阅读次数:
243
Problem DescriptionHow many problems did you AC?When you read this problem, don’t hasty and careless, this is also simple, haha, I didn’t cheat you.Th...
分类:
其他好文 时间:
2014-11-10 21:10:26
阅读次数:
168
#!/usr/bin/perl?-w
use?strict;
use?File::Basename;
use?XML::Simple;
package?CITIC;
my?$TPMS_EOD_ETC=$ENV{TPMS_EOD_ETC};
#return?script?name
sub?getscript_name{
?????????my($pat...
分类:
其他好文 时间:
2014-11-10 18:16:58
阅读次数:
251
Problem DescriptionConversion between the metric and English measurement systems is relatively simple. Often, it involves either multiplying or dividi...
分类:
其他好文 时间:
2014-11-10 15:23:34
阅读次数:
136