prompt
string
response
string
Problem: 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...
paint = input().split(" ") print(len(set(paint)))
Problem: 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...
a,b,c = map(int, raw_input().split()) d = {a,b,c} print len(d)
Problem: 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...
#include<bits/stdc++.h> using namespace std; int main() { set<int>a; int x; for (int i=1;i<=3;++i) { cin>>x; a.insert(x); } cout<<a.size(); }
Problem: 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...
#include <iostream> using namespace std; int main(void){ int a,b,c,cnt=1; cin >> a>>b>>c; if(a!=b) cnt++; if(a!=c&&b!=c) cnt++; cout<<cnt; }
Problem: 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...
n = input().split() m = set(n) print(len(m))
Problem: 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...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int result = 3; if (a == b) { result--; } if (a == c) { result--; } if (b == c) { result--; } ...
Problem: 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...
a=input().split() b=set(a) print(len(b))
Problem: 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...
#include <bits/stdc++.h> using namespace std; int main(){ set<int> s; for(int i=0;i<3;i++){ int x; cin >> x; s.insert(x); } cout << s.size() << endl; return 0; }
Problem: 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...
s = list(input().split()) print(len(set(s)))
Problem: 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...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a==b && b==c){ System.out.println("1"); }else if(a==b | b==c | c==a){ System.out.println("2"); ...
Problem: 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...
caralist = input().split() print(len(set(caralist)))
Problem: 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...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if (a == b && b == c) { System.out.println(1); } else if (a != b && b != c && ...
Problem: 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...
import java.util.*; public class Main{ public static void main(String[] args) { Set colorSet = new HashSet(); Scanner sc = new Scanner(System.in); int color1 = sc.nextInt(); int color2 = sc.nextInt(); int color3 = sc.nextInt(); colorSet.add(color1); colorSet.add(color2); colorSet.add...
Problem: 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...
#include<iostream> using namespace std; int main(){ int a,b,c;cin>>a>>b>>c; int ans=3; if(a==b&&b==c)ans=1; else if(a==b||b==c||c==a) ans=2; cout<<ans<<endl; return 0; }
Problem: 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...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashSet<Integer> set = new HashSet<>(); for(int i=0; i<3; i++){ int t = sc.nextInt(); set.add(t); } System.out.println(set.size()); ...
Problem: 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...
a=input().split(" ") b=set(a) print(len(b))
Problem: 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...
def main(): colors = [int(x) for x in raw_input().split()] print(len(set(colors))) main()
Problem: 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...
print(len(set((int(i) for i in input().split()))))
Problem: 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...
#include<stdio.h> int main() { int a,b,c,n; scanf("%d %d %d",&a,&b,&c); if(a!=b&&a!=c&&b!=c) printf("3"); else if(a==b&&b==c&&a==c) printf("1"); else printf("2"); return 0; }
Problem: 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...
a,b,c=map(int,raw_input().split()) col=[a,b,c] col_kind=[] for i in col: if i in col_kind: pass else: col_kind.append(i) print len(col_kind)
Problem: 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...
import java.util.Scanner; public class Main{ public static void main(String[]args) { Scanner input=new Scanner(System.in); int a; int b; int c; do { a=input.nextInt(); b=input.nextInt(); c=input.nextInt(); }while(a<1&&a>100&&b<1&&b>100&&c<1&&c>100); if(a==b&&b==c) { System.out.println("1"); ...
Problem: 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...
import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Set<Integer> set = new HashSet<>(); set.add(sc.nextInt()); set.add(sc.nextInt()); set.add(sc.nextInt()); sc.close(); System.out.pri...
Problem: 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...
#include <bits/stdc++.h> using namespace std; int main() { set<int> c; for(int i = 0; i < 3; i++) { int t; scanf("%d", &t); c.insert(t); } printf("%d\n", c.size()); }
Problem: 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...
#include<cstdio> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a!=b&&b!=c&&c!=a) printf("3"); else if(a==b&&b==c&&c==a) printf("1"); else printf("2"); return 0; }
Problem: 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...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a == b && b ==c){ System.out.println("1"); }else if(a == b || b == c || c == a){ System.out...
Problem: 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...
import bisect import sys import math import itertools sys.setrecursionlimit(10000) INF = float('inf') # input macro def i(): return int(raw_input()) def ii(): return map(int,raw_input().split(" ")) def s(): return raw_input() def ss(): return raw_input().split(" ") def slist(): return list(raw_inp...
Problem: 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...
list = input().split() print(len(set(list)))
Problem: 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...
a = map(int,input().split()) s = set(a) print(len(s))
Problem: 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...
l = set(list(map(int, input().split()))) print(len(l))
Problem: 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...
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int count=1; if(b!=a)count++; if((c!=a) && (c!=b))count++; cout<<count<<endl; return 0; }
Problem: 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...
#include <iostream> using namespace std; int main(void){ int a,b,c; cin>>a>>b>>c; if (a==b && b==c){cout<<1;} else if (a==b || b==c || a==c){cout<<2;} else cout<<3; }
Problem: 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...
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int(i)=0;i<(n);i++) int main(){ int a; map<int,int> m; REP(i,3){ cin>>a; m[a]++; } cout<<m.size(); }
Problem: 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...
#include <iostream> #include <map> using namespace std; int main(){ int a,b,c,kind=0; cin>>a>>b>>c; map<int,int> m; m[a]=1; m[b]=1; m[c]=1; cout << m.size()<<endl; return 0; }
Problem: 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...
#import"bits/stdc++.h" int main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<(3-std::min((a==b)+(a==c)+(b==c),2));}
Problem: 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...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int SUM = 1; if(A == B && A == C) { }else if(A != B && A != C && B != C) { SUM = 3; }else{ SUM = 2; } Syste...
Problem: 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...
#include <iostream> int main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<((a!=b)+(b!=c)+(c!=a)+1)/2+1;}
Problem: 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...
S = map(int, input().split()) print(len(set(S)))
Problem: 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...
L=list(map(int,input().split())) print(len(set(L)))
Problem: 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...
print(len({n for n in input().split()}))
Problem: 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...
#include<bits//stdc++.h>> using namespace std; int main(){ set<int> st;int n; for(int i = 0; i <3;i++){ cin >> n;st.insert(n); }cout <<st.size()<<endl; }
Problem: 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...
a = [int(x) for x in raw_input().split()] dic = {} for x in a: dic[x] = 1 print len(dic)
Problem: 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...
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; cout << (a==b && b==c ? 1 : (a!=b && b!=c && c!=a? 3 : 2)) << endl; }
Problem: 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...
#include<iostream> #include<cstdio> using namespace std; int a,b,c; int main() { scanf("%d%d%d",&a,&b,&c); printf("%d",3-min((a==b)+(a==c)+(b==c),2)); return 0; }
Problem: 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...
print(len(set([int(n) for n in input().split()])))
Problem: 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...
A = list(input().split()) print(len(set(A)))
Problem: 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...
abc = list(input().split()) print(len(set(abc)))
Problem: 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...
#include <bits/stdc++.h> using namespace std; int main(){ set<int> s; for(int i=0;i<3;i++){ int a; cin>>a; s.insert(a); } cout<<s.size()<<endl; }
Problem: 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...
ns = set(map(int, input().split())) print(len(ns))
Problem: 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...
#include <iostream> using namespace std; int main(){ int a,b,h; cin>>a>>b>>h; if(a==b&&b==h) cout<<1; else if(a==b||b==h||h==a) cout<<2; else cout<<3; }
Problem: 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...
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int cnt = 3; if(a==b)cnt--; if(b==c)cnt--; if(a==c)cnt--; if(a==b&&b==c)cnt++; System.out.println(cnt); } }
Problem: 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...
a = map(int,raw_input().split(" ")) b = a[0] c = a[1] d = a[2] cnt = 3 if b == c: cnt = cnt -1 if b == d: cnt = cnt -1 if c == d: cnt = cnt -1 if c == d and c == b and b == d: cnt = cnt + 1 print cnt
Problem: 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...
a,b,c=map(int,input().split()) s={a,b,c} print(len(s))
Problem: 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...
#include<bits/stdc++.h> using namespace std; int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); printf("%d", (a == b ? a == c ? 1 : 2 : a == c ? 2 : b == c ? 2 : 3)); }
Problem: 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...
import java.util.Scanner; import java.util.HashSet; import java.lang.String; public class Main { public static void main (String[] arg) { Scanner sc = new Scanner(System.in); HashSet<Integer> colors = new HashSet<Integer>(); colors.add(sc.nextInt()); colors.add(sc.nextInt()); colors.add(sc.nex...
Problem: 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...
# vim: set fileencoding=utf-8: def main(): print(len(set(map(int, raw_input().split())))) if __name__ == "__main__": main()
Problem: 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...
#include <iostream> #include <set> using namespace std; int main (){ set<int> ans; for (int i = 0; i < 3; i++) { int sub; cin >> sub; ans.insert(sub); } cout <<ans.size() << endl; }
Problem: 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...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner=new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if(a==b && a==c){ System.out.println(1); }else if(a==b || a==c || b==c){ System.out.println(2); ...
Problem: 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...
Array= list(input().split()) print(len(set(Array)))
Problem: 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...
Can = set(input().split()) print(len(Can))
Problem: 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...
import java.util.Scanner; public class Main { private static Main instance = new Main(); private Scanner scanner = new Scanner(System.in); public static void main(String[] args) { instance.solve(); } private void solve() { int answer = 1; int a = scanner.nextInt(); int b = scanner.nextInt(); if...
Problem: 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...
p = set(map(int, input().split())) print(len(p))
Problem: 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...
import math a = set(input().split()) print(len(a))
Problem: 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...
#include <bits/stdc++.h> using namespace std; int a[3]; int main(){ for(int i=0;i<3;i++)scanf("%d",a+i);sort(a,a+3);printf("%d\n",unique(a,a+3)-a); }
Problem: 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...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a == b && b == c){ System.out.println(1); }else if(a == b || b == c || a == c){ System.out.println(2); }else{ ...
Problem: 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...
l = list(input().split()) print(len(set(l)))
Problem: 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...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int count = 1; if(a != b && a != c){ count += 1; ...
Problem: 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...
a, b, c = map(int, raw_input().split()) print(len(set([a,b,c])))
Problem: 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...
li = input().split() print(len(set(li)))
Problem: 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...
print(len(list(set(map(int, input().split())))))
Problem: 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...
a, b, c = map(int, raw_input().split()) answer = 1 if b != a: answer += 1 if c != a and c != b: answer += 1 print answer
Problem: 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...
X = set(map(int,input().split())) print(len(X))
Problem: 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...
#include<cstdio> int main() { int a,b,c,ans; scanf("%d%d%d",&a,&b,&c); if(a==b&&b==c) ans=1; else if(a==b||a==c||b==c) ans=2; else ans=3; printf("%d\n",ans); return 0; }
Problem: 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...
a = raw_input() a = [i for i in a.split()] print len(set(a))
Problem: 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...
#include<bits/stdc++.h> using namespace std; int main() { set<int> n; for(int i = 0; i < 3; i++) { int a; cin>>a; n.insert(a); } cout<<n.size()<<"\n"; }
Problem: 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...
a,b,c = [int(x) for x in raw_input().split(" ")] if a == b and b == c and c == a: print 1 elif a == b or b == c or c == a: print 2 else: print 3
Problem: 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...
a,b,c=input().split() set={a,b,c} print(len(set))
Problem: 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...
import java.util.Scanner; import java.util.stream.IntStream; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String[] __){ System.out.println(IntStream.of(s.nextInt(),s.nextInt(),s.nextInt()).distinct().count()); } }
Problem: 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...
#include <bits/stdc++.h> int main() { int a, b, c; std::cin >> a >> b >> c; std::set<int> s = {a, b, c}; std::cout << s.size() << std::endl; return 0; }
Problem: 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...
#include<bits/stdc++.h> using namespace std; int main(){ set<int>list; for(int i=0;i<3;i++){ int N; cin>>N; list.insert(N); } cout<<list.size()<<endl; }
Problem: 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...
import java.util.HashSet; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashSet<Integer> hs = new HashSet<>(); hs.add(sc.nextInt()); hs.add(sc.nextInt()); hs.add(sc.nextInt()); System.out.println(hs.size()); } }
Problem: 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...
#include <iostream> #include <set> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; set<int> res{a, b, c}; cout << res.size() << endl; return 0; }
Problem: 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...
x = map(int, input().split()) print(len(set(x)))
Problem: 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...
#include <iostream> using namespace std; int main(void){ int a,b,c; cin>>a>>b>>c; if(a==b&&b==c) cout<<1; else if(a==b||b==c||a==c) cout<<2; else cout<<3; return 0; }
Problem: 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...
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==b && a==c)cout<<1; else if(a==b || a==c || b==c)cout<<2; else cout<<3; return 0; }
Problem: 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...
abc = raw_input().split() print len(set(abc))
Problem: 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...
abc=input().split() sort=set(abc) print(len(sort))
Problem: 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...
l = len(set(map(int, input().split()))) print(l)
Problem: 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...
s = list(map(int,input().split())) print(len(set(s)))
Problem: 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...
#include<bits/stdc++.h> using namespace std; int a[3],cnt=3; int main(){ cin>>a[0]>>a[1]>>a[2];sort(a,a+3); if(a[0]==a[1])cnt--; if(a[1]==a[2])cnt--; cout<<cnt<<endl; return 0; }
Problem: 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...
import java.util.Scanner; import java.util.stream.Stream; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); long ans = Stream.of(a, b, c).dist...
Problem: 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...
print(len({int(x) for x in input().split()}))
Problem: 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...
#include<bits/stdc++.h> using namespace std; set<int>se; int main(){ int a,b,c;cin>>a>>b>>c; se.insert(a);se.insert(b);se.insert(c); printf("%d\n",se.size()); }
Problem: 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...
print(len(set(map(int,input().split(' ')))))
Problem: 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...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int count = 3; if (a == b && b == c && c == a) { System.out.println(1); } else { if (a == ...
Problem: 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...
#include<iostream> #include<map> using namespace std; int main(){ map<int,int> m; for(int i = 0;i < 3;i++){ int a; cin >> a; m[a]++; } cout << m.size() << endl; return 0; }
Problem: 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...
#include "bits/stdc++.h" using namespace std; int main(){ int a,b,c,ans=3; cin>>a;cin>>b;if(a==b)--ans; cin>>c;if(a==c||b==c)--ans; cout<<ans; }
Problem: 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...
A=set([int(x) for x in input().split()]) print(len(A))
Problem: 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...
a,b,c = raw_input().split() a=int(a) b=int(b) c=int(c) A = {a:1,b:1,c:1} print len(A)
Problem: 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...
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a != b && b != c && c != a){ System.out.println(3); } else if(a == b && b == c){ ...
Problem: 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...
L=set(list(map(int,input().split()))) print(len(L))