相关分类: Java技术 C/C++ VB delphi
  • HDU_3193_Find the hotel

    Find the hotel Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 767Accepted Submission(s): 263 Problem Description Summer again! Flynn is ready for another tour around. Since the tour would take th...

    2018-06-17 21:47:11

  • 【luogu 3805】【模板】manacher算法

    题目描述 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 字符串长度为n 输入输出格式 输入格式: 一行小写英文字符a,b,c...y,z组成的字符串S 输出格式: 一个整数表示答案 输入输出样例 输入样例#1: aaa 输出样例#1: 3 说明 字符串长度l...

    2018-06-17 21:47:08

  • POJ_1050_To the Max

    To the Max Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 49811 Accepted: 26400 Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located withi...

    2018-06-17 21:47:08

  • C++中setiosflags()的用法

    coutsetiosflags(ios::fixed)setiosflags(ios::right)setprecision(2); setiosflags 是包含在命名空间iomanip 中的C++ 操作符,该操作符的作用是执行由有参数指定 区域内的动作; iso::fixed 是操作符setiosflags 的参数之一,该参数指定的动作是以带小数点的形式表示...

    2018-06-17 21:47:02

  • 【noip 2012】同余方程

    题目描述 求关于 x 的同余方程 ax 1 (mod b)的最小正整数解。 输入输出格式 输入格式: 输入只有一行,包含两个正整数 a, b,用一个空格隔开。 输出格式: 输出只有一行,包含一个正整数 x0,即最小正整数解。输入数据保证一定有解。 输入输出样例 输入样例#1: 3 10...

    2018-06-17 21:47:00

  • 【poj 3385】【模板】负环

    题目描述 暴力枚举/SPFA/Bellman-ford/奇怪的贪心/超神搜索 输入输出格式 输入格式: 第一行一个正整数T表示数据组数,对于每组数据: 第一行两个正整数N M,表示图有N个顶点,M条边 接下来M行,每行三个整数a b w,表示a-b有一条权值为w的边(若w0则为单向,否则双向...

    2018-06-17 21:46:57

  • 【luogu 3811】【模板】乘法逆元

    题目背景 这是一道模板题 题目描述 给定n,p求1~n中所有整数在模p意义下的乘法逆元。 输入输出格式 输入格式: 一行n,p 输出格式: n行,第i行表示i在模p意义下的逆元。 输入输出样例 输入样例#1: 10 13 输出样例#1: 179108112534 说明 1 n 3 1 0 ? 6 ?? , n p 2 0 0 0...

    2018-06-17 21:46:54

  • POJ_2019_Cornfields

    Cornfields Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 7444 Accepted: 3609 Description FJ has decided to grow his own corn hybrid in order to help the cows make the best possible milk. To that end, he's looking to build the cornfield...

    2018-06-17 21:46:55

  • POJ_3264_Balanced Lineup

    Balanced Lineup Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 57259 Accepted: 26831 Case Time Limit: 2000MS Description For the daily milking, Farmer John's N cows (1 N 50,000) always line up in the same order. One day Farmer John decid...

    2018-06-17 21:46:53

  • 【luogu 3372】【模板】线段树1

    题目描述 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数加上x 2.求出某区间每一个数的和 输入输出格式 输入格式: 第一行包含两个整数N、M,分别表示该数列数字的个数和操作的总个数。 第二行包含N个用空格分隔的整数,其中第i个数字表示数列第i项...

    2018-06-17 21:46:51

2