"C language programming 365 cases of classic" 022

IT / Internet job recruitment plan -AT Bao brother


Depth understanding of IT / Internet industry and jobs, please refer to the general IT / Internet job recruitment program (the latest full version of Kong) .
Depth understanding of career advancement and learning routes, see the optimal path for career advancement courses and study guides (the latest full-stack version) .


Content navigation :

  • 1, title
  • 2, analysis
  • 3, code implementation
  • 4, operating results

1, title

Two table tennis team to compete, each out of three. A team of a, b, c three, Team B is x, y, z three. List of game has been determined by lot. Asking someone to the list of game players. He does not say a ratio x, c said he did not and x, z ratio, programmed to identify a list of three teams of racing.


2, analysis

Analyzing method prime numbers: 2, respectively, with the removal of a number sqrt (this number), if divisible, this indicates that the number is not prime, a prime number and vice versa.


3, the sample code

/*
作者:AT阿宝哥
日期:2016年9月18日
愿景:参考官方资料,做最好的课程,成就更多职业人!
邮箱:[email protected]
C

Guess you like

Origin blog.csdn.net/goldentec/article/details/105283267