AtCoDeer and Paint Cans

6471: AtCoDeer and Paint Cans

时间限制: 1 Sec  内存限制: 128 MB
提交: 224  解决: 167
[提交] [状态] [讨论版] [命题人:admin]

题目描述

AtCoDeer the deer recently bought three paint cans. The color of the one he bought two days ago is a, the color of the one he bought yesterday is b, and the color of the one he bought today is c. Here, the color of each paint can is represented by an integer between 1 and 100, inclusive.
Since he is forgetful, he might have bought more than one paint can in the same color. Count the number of different kinds of colors of these paint cans and tell him.

Constraints
1≤a,b,c≤100

 

输入

The input is given from Standard Input in the following format:
a b c

 

输出

Print the number of different kinds of colors of the paint cans.

 

样例输入
3 1 4

 

样例输出
3

 

提示

Three different colors: 1, 3, and 4.

对没错,就是一道这样水的题但是我交了五次。

确实我很水,但是我只想说1 1 1 这三个按正常道理来说都是相同的,所以不同的颜色应该是0

但是,题目的要求就是如果它们都相同的话,那算一种不同的颜色

转载于:https://my.oschina.net/u/3900854/blog/1844669

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值