当前位置:首页
> Luz 第2967页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:Write a function to determine whether a positive integer is a prime
Write a function isprime (int n) to determine whether a positive integer n is a prime number. If n is a prime number, th…
PROGRAMMING:Finding the greatest common divisor and the least common multiple of two integers
Find the greatest common divisor and the least common multiple of two integers. Define a function to find the greatest c…
PROGRAMMING:Live Award
A programming contest will be held soon. In order to increase the appreciation, the organizing committee decided to eval…
PROGRAMMING:Arrange papers
Given n papers with numbers from 1 to N and M citation relations in the form of D, u ($$1 / Le D, U / Le n, D / NEQ, u $…
PROGRAMMING:Labyrinth
A maze consists of N rows and m columns. Some of the lattices are open space and can walk; Some grids are obstacles and…
PROGRAMMING:Finding the maximum and minimum value in a matrix
Enter an n × M integer matrix (n ˂ = 10, m ˂ = 10), and then output the maximum and minimum values, and output the subsc…
PROGRAMMING:Minimum spanning tree
Given a positive weighted undirected graph with n vertices, it is numbered from 0 to n-1. Please write a program to find…
PROGRAMMING:Maze II
A maze consists of N rows and m columns. Some of the lattices are open space and can walk; Some grid is an obstacle, can…
PROGRAMMING:Super Marie
Suppose there are n castles, numbered 1 to N. some castles are directly connected by roads, and some castles are not dir…
PROGRAMMING:Mode
Given a number of positive integers, please find the number with the most occurrences.###Input format:Enter a number of…