最新 最热

Scarily interesting! (URAL - 2021)

This year at Monsters University it is decided to arrange Scare Games. At the Games all campus gathers at the stadium stands, and the Scare program students div...

2023-03-09
1

About Grisha N. ( URAL - 2012 )

Grisha N. told his two teammates that he was going to solve all given problems at the subregional contest, even if the teammates wouldn’t show up at the competi...

2023-03-09
1

数据结构实验之图论八:欧拉回路(SDUT 3364)

能否走过这样的七座桥,并且每桥只走一次?瑞士数学家欧拉最终解决了这个问题并由此创立了拓扑学。欧拉通过对七桥问题的研究,不仅圆满地回答了哥尼斯堡七桥问题,并证明了更为广泛的有关一笔画的三条结论,人们通常称之为欧拉...

2023-03-09
1

Friends (ZOJ - 3710)

Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than k friends in common, they ...

2023-03-09
1

数据结构实验之数组三:快速转置(SDUT 3347)

转置运算是一种最简单的矩阵运算,对于一个m*n的矩阵M( 1 = < m < = 10000,1 = < n < = 10000 ),它的转置矩阵T是一个n*m的矩阵,且T( i , j )=M( j , i )。显然,一个稀疏矩阵的转置仍然是稀疏矩阵。你的任务是对给定一个m*...

2023-03-09
1

数据结构实验之数组二:稀疏矩阵(SDUT 3348)

对于一个n*n的稀疏矩阵M(1 <= n <= 1000),采用三元组顺序表存储表示,查找从键盘输入的某个非零数据是否在稀疏矩阵中,如果存在则输出OK,不存在则输出ERROR。稀疏矩阵示例图如下:...

2023-03-09
1

Simple Problem with Integers(POJ 3486)

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 give...

2023-03-09
1

敌兵布阵(HDU 1166)

C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所...

2023-03-09
1

删数问题(SDUT2072 )

Time Limit: 1000 msMemory Limit: 65536 KiB

2023-03-09
1

A^B Mod C (快速幂)

Input3个正整数A B C,中间用空格分隔。(1 <= A,B,C <= 10^9)Output输出计算结果Sample Input

2023-03-09
1