您当前的位置: 首页 >  算法

星许辰

暂无认证

  • 2浏览

    0关注

    466博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

杭电OJ第11页2095~2099算法题(C语言)

星许辰 发布时间:2021-01-19 15:27:43 ,浏览量:2

目录
  • 2095.find your present (2)
  • 2096.小明A+B
  • 2097.Sky数
  • 2098.分拆素数和
  • 2099.整除的尾数

2095.find your present (2)
Problem Description
In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now putting on the desk, and only one of them will be yours.Each present has a card number on it, and your present's card number will be the one that different from all the others, and you can assume that only one number appear odd times.For example, there are 5 present, and their card numbers are 1, 2, 3, 2, 1.so your present will be the one with the card number of 3, because 3 is the number that different from all the others.
 
Input
The input file will consist of several cases.
Each case will be presented by an integer n (1            
关注
打赏
1665627467
查看更多评论
0.0422s