相关分类: Java技术 C/C++ VB delphi
  • POJ2409 Let it Bead(Polya定理)

    Let it Bead Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6443 Accepted: 4315 Description "Let it Bead" company is located upstairs at 700 Cannery Row in Monterey, CA. As you can deduce from the company name, their business is beads. Th...

    2018-07-12 07:32:37

  • 洛谷P2759 奇怪的函数(log 二分)

    题目描述 使得 x^x x x达到或超过 n 位数字的最小正整数 x 是多少? 输入输出格式 输入格式: 一个正整数 n 输出格式: 使得 x^x x x达到 n 位数字的最小正整数 x 输入输出样例 输入样例#1:复制 11 输出样例#1:复制 10 说明 n=2000000000 比较套路,首先转化一下题面...

    2018-07-11 03:31:05

  • BZOJ1008: [HNOI2008]越狱(组合数)

    题目描述 监狱有连续编号为 1N 1 N的 N N个房间,每个房间关押一个犯人,有 M M种宗教,每个犯人可能信仰其中一种。如果相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱。 输入输出格式 输入格式: 输入两个整数$M,N$ 输出格式: 可能越狱的状...

    2018-07-11 03:31:03

  • BZOJ4128: Matrix(BSGS 矩阵乘法)

    Time Limit:10 Sec Memory Limit:128 MB Submit:813 Solved:442 [Submit][Status][Discuss] Description 给定矩阵A,B和模数p,求最小的x满足A^x = B (mod p) Input 第一行两个整数n和p,表示矩阵的阶和模数,接下来一个n * n的矩阵A.接下来一个n * n的矩阵B Output 输出...

    2018-07-11 03:31:01

  • C++ 死循环在语言层面的检测

    英文概念 Infinite loop without side-effects 这个目前只有CLang实现了这个C++特色 #include iostream int 费马定理() { const int MAX = 1000 ; int a= 1 ,b= 1 ,c= 1 ; // Endless loop with no side effects is UB while ( 1 ) { if (((a*a*a) == ((b*b*b)+(c*c*c)...

    2018-07-11 03:31:00

  • dp总结

    写这篇博文主要是为了归纳总结一下dp的有关问题(不定期更新,暑假应该会更的快一些) 会大概讲一下思路,不会事无巨细地讲 另一篇是平时做过的一些dp题,这篇博客里面提到的题都有题解放在那边:https://www.cnblogs.com/henry-1202/p/9211398.html 这个玩意更新会有...

    2018-07-11 03:30:58

  • BZOJ2752: [HAOI2012]高速公路(road)(线段树 期望)

    Time Limit:20 Sec Memory Limit:128 MB Submit:1820 Solved:736 [Submit][Status][Discuss] Description Y901高速公路是一条重要的交通纽带,政府部门建设初期的投入以及使用期间的养护费用都不低,因此政府在这条高速公路上设立了许多收费站。 Y901高速公路是一条由N...

    2018-07-11 03:30:55

  • Codechef Chef and Easy Problem(智商)

    Read problems statements inMandarin chinese,RussianandVietnameseas well. You are given a sequence A 1 , A 2 , ..., A N and Qqueries. In each query, you are given two parameters Land R; you have to find the smallest integer Xsuch that 0 X 2 31 and th...

    2018-07-11 03:30:46

  • BZOJ3207花神的嘲讽计划Ⅰ——主席树+hash

    题目描述 背景 花神是神,一大癖好就是嘲讽大J,举例如下: 哎你傻不傻的...

    2018-07-11 03:30:44

  • POJ2154 Color(Polya定理)

    Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 11654 Accepted: 3756 Description Beads of N colors are connected together into a circular necklace of N beads (N=1000000000). Your job is to calculate how many different kinds of the necklac...

    2018-07-11 03:30:41

2