Boring CountingTime Limit: 3000ms Memory limit:
65536K有疑问?点这里^_^题目描述 In this problem you are given a number sequence P
consisting of N integer and Pi....
分类:
其他好文 时间:
2014-05-08 19:17:31
阅读次数:
473
sdut 2603 Rescue The Princess(算是解析几何吧)(山东省第四届ACM省赛A题)...
分类:
其他好文 时间:
2014-05-07 23:16:26
阅读次数:
516
715年八月,齐僖公从山东跑到河南来朝觐周桓王,免不了要经过郑国的领土,其中还要经过郑国军队控制的战略要地虎牢关。郑庄公作为地主,对齐僖公的来访进行了热情的接待,又以王室卿士的身份,亲自引路带着齐僖公前往雒邑,自然是合乎礼义的事。
但是,从齐僖公此行的意图来看,朝觐天子也许只是一个幌子,拜访郑...
分类:
其他好文 时间:
2014-05-07 17:30:45
阅读次数:
218
数据结构实验之二叉树的建立与遍历
题目描述
已知一个按先序序列输入的字符序列,如abc,,de,g,,f,,,(其中逗号表示空节点)。请建立二叉树并按中序和后序方式遍历二叉树,最后求出叶子节点个数和二叉树深度。
输入
输入一个长度小于50个字符的字符串。
输出
输出共有4行:
第1行输出中序遍历序列;
第2行输出后序遍历序列;
第3行输出叶子节点个数;...
分类:
其他好文 时间:
2014-05-07 08:14:44
阅读次数:
357
本文出自:http://blog.csdn.net/svitter
题意:
f(x) = K, x = 1
f(x) = (a*f(x-1) + b)%m , x > 1
求出( A^(f(1)) + A^(f(2)) + A^(f(3)) + ...... + A^(f(n)) ) modular P.
1
0
1
本题目的关键在于大幂的分解和。。你...
分类:
其他好文 时间:
2014-05-07 06:19:22
阅读次数:
366
The number of steps
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Mary stands in a strange maze, the maze looks like a triangle(the first layer have one room,the seco...
分类:
其他好文 时间:
2014-05-07 06:15:59
阅读次数:
427
2013山东省第四届ACM大学生程序设计竞赛 Rescue The Princess 计算几何 山东省赛 sdut2603...
分类:
其他好文 时间:
2014-05-07 05:35:13
阅读次数:
487
Pixel density题目描述Pixels per inch (PPI) or pixel
density is a measurement of the resolution of devices in various contexts;
typically computer displays...
分类:
其他好文 时间:
2014-05-07 02:23:38
阅读次数:
481
第一届山东省赛题目(2400-2409)http://acm.sdibt.edu.cn/JudgeOnline/problemset.php?search=%E5%B1%B1%E4%B8%9C%E7%9C%81%E7%AC%AC%E4%B8%80%E5%B1%8AACM%E7%A8%8B%E5%BA...
分类:
其他好文 时间:
2014-05-07 00:07:25
阅读次数:
338
2013山东省第四届ACM大学生程序设计竞赛 Alice and Bob 山东省赛 规律 sdut2608...
分类:
其他好文 时间:
2014-05-06 19:05:47
阅读次数:
494