PAT A 1041(甲级) |
您所在的位置:网站首页 › pat联盟 › PAT A 1041(甲级) |
1041 Be Unique (20)(20 分) 作者: CHEN, Yue 单位: PAT联盟 时间限制: 100ms 内存限制: 64MB 代码长度限制: 16KB Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 10^4^]. The first one who bets on a unique number wins. For example, if there are 7 people betting on 5 31 5 88 67 88 17, then the second one who bets on 31 wins. Input Specification: Each input file contains one test case. Each case contains a line which begins with a positive integer N ( |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |