s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s227786321
p03962
u976225138
1567968227
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
print(len(set(input().split()))
s157573577
p03962
u513900925
1567532426
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
A,B,C = map(int,input().split()) ans =1 if A != B: ans += 1 if A != C and B != C: ans += 1 print(ANS)
s126771551
p03962
u417958545
1567306657
Python
Python (3.4.3)
py
Runtime Error
17
3060
240
a = int(input()) b = int(input()) c = int(input()) if a != b and a != c and b != c: print(3) if a == b and b != c : print(2) if a == c and b != c : print(2) if b == c and a != c : print(2) if a == b == c: print(1)
s397571603
p03962
u119982001
1567222835
Python
Python (2.7.6)
py
Runtime Error
10
2568
940
import argparse from sys import stdin """ parser = argparse.ArgumentParser() # パーサーを作る parser = argparse.ArgumentParser( prog='a', # プログラム名 usage='Count paint number', #プログラムの利用方法 description='Description', # 引数のヘルプの前に表示 epilog='end', # 引数のヘルプの後で表示 add_help=True, # -h/–help オプションの追加 ) # 引数の追加 parser.add_argument('infile', help='inputfile', type=argparse.FileType('r')) # 引数を解析する args = parser.parse_args() message = args.infile.read() args.infile.close(); parser.add_argument('arg1', help='input flie name') a = message[0] b = message[1] c = message[2] """ a, b, c = [int(x) for x in stdin.readline().rstrip().split()] if a==b==c: print(1) elif a==b or b==c or a==c: print(2) else: print(3)
s770611718
p03962
u119982001
1567222665
Python
Python (2.7.6)
py
Runtime Error
10
2568
847
import argparse parser = argparse.ArgumentParser() # パーサーを作る parser = argparse.ArgumentParser( prog='a', # プログラム名 usage='Count paint number', #プログラムの利用方法 description='Description', # 引数のヘルプの前に表示 epilog='end', # 引数のヘルプの後で表示 add_help=True, # -h/–help オプションの追加 ) # 引数の追加 parser.add_argument('infile', help='inputfile', type=argparse.FileType('r')) # 引数を解析する args = parser.parse_args() message = args.infile.read() args.infile.close(); parser.add_argument('arg1', help='input flie name') a = message[0] b = message[1] c = message[2] if a==b==c: print(1) elif a==b or b==c or a==c: print(2) else: print(3)
s594539984
p03962
u119982001
1567222508
Python
Python (3.4.3)
py
Runtime Error
32
4212
847
import argparse parser = argparse.ArgumentParser() # パーサーを作る parser = argparse.ArgumentParser( prog='a', # プログラム名 usage='Count paint number', #プログラムの利用方法 description='Description', # 引数のヘルプの前に表示 epilog='end', # 引数のヘルプの後で表示 add_help=True, # -h/–help オプションの追加 ) # 引数の追加 parser.add_argument('infile', help='inputfile', type=argparse.FileType('r')) # 引数を解析する args = parser.parse_args() message = args.infile.read() args.infile.close(); parser.add_argument('arg1', help='input flie name') a = message[0] b = message[1] c = message[2] if a==b==c: print(1) elif a==b or b==c or a==c: print(2) else: print(3)
s225789477
p03962
u119982001
1566976334
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
import sys args = sys.argv a = args[1] b = args[2] c = args[3] if a==b==c: print 1: elif a==b or b==c or a==c: print 2: else: print 3:
s892189656
p03962
u119982001
1566976186
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
import sys args = sys.argv a = args[1] b = args[2] c = args[3] if a==b==c: print(1) elif a==b or b==c or a==c: print(2) else: print(3)
s775668339
p03962
u642120132
1566938823
Python
Python (3.4.3)
py
Runtime Error
17
2940
41
print(len(set(map(int, input().split())))
s766393879
p03962
u713465512
1566788784
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a,b,c = map(int,input().split()) print(len(set(a,b,c)))
s298466303
p03962
u275861030
1566764994
Python
Python (3.4.3)
py
Runtime Error
17
3060
191
num = map(int, input().split()) a = num[0] b = num[1] c = num[2] if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s426740168
p03962
u275861030
1566764945
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
num = map(int, input.split()) a = num[0] b = num[1] c = num[2] if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s035473226
p03962
u275861030
1566764563
Python
Python (3.4.3)
py
Runtime Error
17
2940
174
a= int(input()) b= int(input()) c= int(input()) if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s841035074
p03962
u275861030
1566764525
Python
Python (3.4.3)
py
Runtime Error
17
2940
174
a= int(input()) b= int(input()) c= int(input()) if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s720050941
p03962
u275861030
1566764411
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
a= int(input()) b= int(input()) c= int(input()) if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s140584579
p03962
u275861030
1566764310
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
a= int(input()) b= int(input()) c= int(input()) if a == b == c: print(1) elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s887008964
p03962
u275861030
1566764208
Python
Python (3.4.3)
py
Runtime Error
18
3060
160
a= int(input()) b= int(input()) c= int(input()) if a == b == c: print(1) if (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a): print(2) else: print(3)
s277226141
p03962
u453011924
1566759932
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
c=list(map(input().split())) print(len(set(c)))
s560920694
p03962
u802963389
1566658354
Python
Python (3.4.3)
py
Runtime Error
22
3316
108
import collections li = list(map(int, input().split())) c = collections.Counter(li) print(count(c.keys()))
s417500269
p03962
u040033078
1566386057
Python
Python (3.4.3)
py
Runtime Error
18
2940
28
print(len(a=set(input()))-1)
s225032041
p03962
u040033078
1566386006
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
print(len(set(input())-1)
s122319226
p03962
u994988729
1566332672
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
print(len(set([input().split()])))
s016094278
p03962
u264265458
1566185160
Python
Python (3.4.3)
py
Runtime Error
18
2940
42
print(len(list(set(int,input().split()))))
s063088308
p03962
u134712256
1565922707
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
s=input().split() print(len(set(s))
s294098424
p03962
u318165580
1565896836
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
a,b,c=list(map(int,input().split())) print("3" if a=b=c else "2" if a=b or a=c or b=c else "3")
s573993256
p03962
u821251381
1565839348
Python
Python (3.4.3)
py
Runtime Error
20
2940
1
v
s734107166
p03962
u360515075
1565810458
Python
Python (3.4.3)
py
Runtime Error
20
2940
31
print (len(set(input.split())))
s695744639
p03962
u532099150
1565752093
Python
Python (3.4.3)
py
Runtime Error
18
2940
42
a = set(map(int, input())) print(len(a))
s842462619
p03962
u729535891
1565734122
Python
Python (3.4.3)
py
Runtime Error
19
2940
93
N = input().split() d = dict.fromkeys(N, 0) for n in N: d[n] += 1 print(sum(d.values())
s840826289
p03962
u729535891
1565734091
Python
Python (3.4.3)
py
Runtime Error
17
2940
219
a, b, c = map(int, input().split()) if a == b and b == c: print(1) elif a == b or a == c: print(2) else: print(3) N = input().split() d = dict.fromkeys(N, 0) for n in N: d[n] += 1 print(sum(d.values())
s139032376
p03962
u740047492
1565643566
Python
Python (3.4.3)
py
Runtime Error
18
2940
59
color = list(map(int,input().split)) print(len(set(color)))
s531951441
p03962
u740047492
1565643464
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
color = list(map(int, input().split())) print(len(set(color))
s392057983
p03962
u740047492
1565642189
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
color = set(map(int, input().split)) print(len(color))
s064003096
p03962
u740047492
1565641909
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
A, B C = set(map(int.input().split)) print(len(A, B, C))
s078236076
p03962
u111525113
1565522907
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
a, b, c = map(int, input().split()) colors = set(a, b, c) print(len(colors))
s987037693
p03962
u740047492
1565464519
Python
Python (3.4.3)
py
Runtime Error
17
3056
153
a, b, c = [int(input()) for _ in range(3)] if (a == b != c) or (b == c != a) or (c == a != b): print(2) elif (a == b == c): print(1) else: print(3)
s675634687
p03962
u740047492
1565464475
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
a, b, c = [int(input()) for_in range(3)] if a == b != c or b == c != a or c == a != b: print(2) elif (a == b == c): print(1) else: print(3)
s733420913
p03962
u740047492
1565464356
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
a, b, c = [int(input()) for_in range(3)] if (a == b != c) or (b == c != a) or (c == a != b): print(2) elif (a == b == c): print(1) else: print(3)
s610180585
p03962
u330661451
1565352530
Python
Python (3.4.3)
py
Runtime Error
18
2940
31
print(len(set(input().split()))
s677088935
p03962
u276785896
1565334553
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a = int(input()) b = int(input()) c = int(input()) if a=b and a=c: print(1) elif a=b or a=c or b=c: print(2) else: print(3)
s422418563
p03962
u379959788
1565039638
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; set<int> st{a, b, c}; cout << st.size() << endl; }
s476077197
p03962
u498397607
1564894951
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
a, b, c = map(int, input.split()) print(len(set((a, b, c))))
s666829738
p03962
u520378905
1564871846
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
a = int (input()) b = int (input()) c = int (input()) if a==b==c: print("1") elif a!=b!=c: print("3") else: print("2")
s852509881
p03962
u324549724
1564103538
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
n, k = map(int, input().split()) print(n*((n-1)**(k-1)))
s941118537
p03962
u555865264
1563794823
Python
Python (3.4.3)
py
Runtime Error
17
3060
311
def play(): s, e = 0,1e18 while s<e: mid = (s + (e - s) // 2) if mid * x >= a and mid * y >= b: e = mid else : s = mid + 1 return int(s) t = int(input()) a,b = map(int,input().split()) for i in range(0,t - 1): x, y = map(int,input().split()) n = play() a, b = n * x, n * y print(a+b)
s281068526
p03962
u296150111
1561511800
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
n,k-map(int,input().split()) ans=k for i in range(n): ans*=k-1 print(ans)
s107620550
p03962
u560988566
1560389736
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
a,b,c = map(int, input).split() ans = 3 if a == b: if a == c: ans = 1 else: ans = 2 elif a == c: ans = 2 print(ans)
s244029798
p03962
u150386598
1560046838
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
s = [int(input()) for i in range(3)] s = list(set(s)) print(len(s))
s971767518
p03962
u029169777
1559775888
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
N,K=map(int,input().split()) print(K*((K-1)**(N-1)))
s756552674
p03962
u777394984
1558994254
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
s = list(set(map(int,input.split()))) print(len(s))
s990896506
p03962
u777394984
1558994219
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = set(map(int,input.split())) print(len(s))
s581265018
p03962
u558374183
1558803033
Python
Python (3.4.3)
py
Runtime Error
17
2940
192
l = list(map(int, input().split())) s = 3 for i in range(3): for j in range(i + 1, 3): if l[i] == l[j]: s = s - 1 if l[0] = l[1] and l[1] = l[2]: s = s + 1 print(s)
s146118109
p03962
u558374183
1558802709
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
l = list(map(int, input().split())) for i in range(3): for j in range(i + 1, 3): if l[i] == l[j]: s = s + 1 print(s)
s879938212
p03962
u663014688
1558657420
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
a, b, c = map(int, (input())) if a == b and a == c: print(1) elif a == b or a == c or b == c: print(2) else: print(3)
s951516610
p03962
u663014688
1558657354
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
a = int(input()) b = int(input()) c = int(input()) if a == b and a == c: print(1) elif a == b or a == c or b == c: print(2) else: print(3)
s333740929
p03962
u663014688
1558657304
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
a = int(input()) b = int(input()) c = int(input()) if a == b and b == c: print(1) elif a == b or b == c or a == c: print(2) else: print(3)
s232647898
p03962
u663014688
1558657119
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
a = int(input()) b = int(input()) c = int(input()) if a == b and b == c: print(1) elif a == b or b == c or a == c: print(2) else: print(3)
s937829047
p03962
u663014688
1558657053
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
a = int(input()) b = int(input()) c = int(input()) if a == b == c: print(1) elif a == b or b == c or a == c: print(2) else: print(3)
s018270495
p03962
u663014688
1558656846
Python
Python (3.4.3)
py
Runtime Error
18
2940
131
a = input() b = input() c = input() if a == b == c: print(1) elif a == b or b == c or a == c: print(2) else: print(3)
s615563275
p03962
u663014688
1558656417
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
a = input() b = input() c = input() count = 3 if a == b: count -= 1 if b == c: count -= 1 if a == c: count -= 1 print(count)
s575192476
p03962
u894953648
1558397329
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
a,b,c=map(int,input().split()) if a==b==c: print(1) elif a==b or b==c or a==b: print(2) else: print(3)3 3 33
s909579892
p03962
u468431843
1558229885
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
# -*- coding: utf-8 -*- # n, k = map(int, input().split()) ans = 0 ans = k * pow(k-1, n-1) print(ans)
s881528575
p03962
u363992934
1557880280
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
a,b,c=map(int, input().split()) print(max((a!=b)+(b!=c)+(c!=a),1)
s454651112
p03962
u185331085
1557260730
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
a,b,c = map(int,input().split()) if a = b and b = c: print(1) elif a = b or b = c or a = c: print(2) else: print(3)
s335414100
p03962
u185331085
1557260661
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
a,b,c = map(int,input().split()) if a=b and b=c: print(1) elif a=b or b=c or a=c: print(2) else: print(3)
s743839355
p03962
u185331085
1557260578
Python
Python (3.4.3)
py
Runtime Error
19
3188
114
a,b,c = map(int,input().split()) if a=b and b=c: print(1) elif (a=b or b=c or a=c): print(2) else: print(3)
s281497923
p03962
u185331085
1557260549
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
a,b,c = map(int,input().split()) if a=b=c: print(1) elif (a=b or b=c or a=c): print(2) else: print(3)
s265502917
p03962
u185331085
1557260498
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
a,b,c = map(int.input().split()) if a=b and b=c: print(1) elif (a=b or b=c or a=c): print(2) else: print(3)
s198894864
p03962
u185331085
1557260378
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
a,b,c = map(int.input().split()) if a=b=c: print(1) elif (a=b or b=c or a=c): print(2) else: print(3)
s386071531
p03962
u185331085
1557125966
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
a,b,c = int(input().split()) if a=b=c: print(1) elif (a=b or b=c or a=c): print(2) else: print(3)
s703162583
p03962
u507116804
1557028067
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
i = [int(input()) for i in range(3)] print(len(set(i)))
s886306501
p03962
u182047166
1556972540
Python
Python (3.4.3)
py
Runtime Error
18
2940
163
a, b, c = map(int, input().split()) if a == b and b == c: print(1) elif a == b and b != c or b == c and a != b or a==c and a!=b print(2) else: print(3)
s023447376
p03962
u507116804
1556855673
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
l=list(map(int,input().split())) c = collections.Counter(l) print(c)
s482361272
p03962
u432805419
1556672709
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
a = list(map(int,input().split())) a.sort() if a != b and b != c: print(3) elif a == b and b == c: print(1) else: print(2)
s231342406
p03962
u732870425
1556388943
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
print(len(set(map(input().split()))))
s630998508
p03962
u732870425
1556388737
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a = list(map(innt, input().split())) print(len(set(a)))
s302059316
p03962
u956866689
1556230118
Python
Python (3.4.3)
py
Runtime Error
17
3060
241
a, b, c = map(int, input()) def onaji(x, y): if x == y: return True return False if onaji(a, b): if onaji(b, c): print(1) else: print(2) elif onaji(a, c): if onaji(b, c): print(1) else: print(2) else: print(3)
s588514433
p03962
u370429695
1555879696
Python
Python (3.4.3)
py
Runtime Error
18
2940
188
li ~ list(map(int,input().split())) cnt = 3 if li[0] == li[1]: cnt -= 1 if li[0] == li[2]: cnt -= 1 if li[1] == li[2]: cnt -= 1 if li[0] == li[1] and li[1] == li[2]: cnt = 1 print(cnt)
s723880376
p03962
u144980750
1555879696
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a=map(int,input().split()) a.sort() print(1 if a[0]==a[2] else 2 if a[0]==a[1] or a[1]==a[2] else 3)
s772717810
p03962
u331464808
1555353550
Python
Python (3.4.3)
py
Runtime Error
18
2940
150
p = list(map(int,input()split())) if p[0] != p[1] and p[1] != p[2] and p[2] != p[0]: print(3) elif p[0] == p[1] == p[2]: print(1) else: print(2)
s414074389
p03962
u331464808
1555353348
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
p = list(map(int,input()split())) if p[0] != p[1] and p[1] != p[2] and p[2] != p[0]: print(3) elif p[0] = p[1] and p[1] = p[2]: print(1) else: print(2)
s920401970
p03962
u331464808
1555353123
Python
Python (3.4.3)
py
Runtime Error
17
2940
196
p = list(map(int,input()split())) if (p[1] = p[2] and p[0]!=p[1])or(p[0]=p[1]and p[1]!=p[2])or(p[0]=p[2] and p[0]!=p[1]): print("2") if p[0]!=p[1] and p[0]!=p[2]: print("3") else: print("1")
s786565382
p03962
u163320134
1555236661
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
a,b,c=map(int,input()) dic={} dic[a]=1 dic[b]=1 dic[c]=1 print(len(list(dic)))
s803403254
p03962
u423852414
1555204409
Python
Python (3.4.3)
py
Runtime Error
18
2940
141
a, b =map(int, open(0).read().split()) if a < b: c = 2 * b - 1 print(c) if a == b: c = 2 * a print(c) else: c = 2 * a -1 print(c)
s066521709
p03962
u387456967
1555020437
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
a,b,c = map(int,input().split()) s = set{a,b,c} print(len(s))
s063257187
p03962
u387456967
1555020398
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a,b,c = map(int,input().split()) print(len(set{a,b,c}))
s464657145
p03962
u387456967
1555019746
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
a,b,c = map(int,input().split()) ans = len(set(a,b,c)) print(ans)
s963223891
p03962
u288040231
1554683903
Python
Python (3.4.3)
py
Runtime Error
18
2940
38
print(list(set(int(input().split()))))
s158338282
p03962
u288040231
1554683779
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
colors = [] for i in range(3): colors.append(int(input())) unique_colors = list(set(colors)) print(len(unique_colors))
s886813828
p03962
u844005364
1554648926
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38256
54
x = list(map(int, input().split())) print(len(set(x))
s523380146
p03962
u256868077
1554645325
Python
Python (3.4.3)
py
Runtime Error
18
3188
173
a=list(map(int,input().split())) ans=3  for i in range(0,2): for j in range(i+1,3): if a[i]==a[j]: ans -= 1 else: j += 1 print(ans)
s392519777
p03962
u603745966
1554515811
Python
Python (3.4.3)
py
Runtime Error
22
3564
837
import collections from functools import reduce def main(): # 初期値用:十分大きい数(100億) # 1e10 # 初期値用:十分小さい数(-100億) # -1e10 # 1文字のみを読み込み # s = input().rstrip() # スペース区切りで標準入力を配列として読み込み # s = input().rstrip().split(' ') # 1文字ずつ標準入力を文字列として読み込み # s = list(input().rstrip()) # 位置文字ずつ標準入力を数値配列として読み込み # X = [int(_) for _ in input().split()] X = [int(_) for _ in input().split()] ans = [0 for _ in range(100)] for x in X: ans[x] = ans[x] + 1 print(max(ans)) # c = collections.Counter(X) # print(c.most_common()[0][1]) if __name__ == '__main__': main()
s956470625
p03962
u616522759
1554456096
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
a, b, c = map(int, input().split()) if a == b == c: print(1) elif: a == b != C or b == c != a or c == a != b: print(2) else: print(3)
s750531555
p03962
u616522759
1554455967
Python
Python (3.4.3)
py
Runtime Error
18
2940
127
a, b, c = map(int, input().split()) if a == b == c: print(1) elif: a == b or b == c or c == a: print(2) else: print(3)
s797468473
p03962
u912862653
1553894192
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
a = int(input()) b = int(input()) c = int(input()) if a==b and b==c: print(1) elif a!=b and b!=c and c!=a: print(3) else: print(2)
s559508670
p03962
u370331385
1553016340
Python
Python (3.4.3)
py
Runtime Error
16
2940
259
#include <iostream> using namespace std; int main() { int a , b , c ; int count = 3; cin >> a >> b >> c; if(a == b) count -= 1; if(a == c) count -= 1; if(b == c) count -= 1; if(count == 0) count += 1; cout << count; return 0; }
s655953378
p03962
u952022797
1552083458
Python
Python (3.4.3)
py
Runtime Error
21
3064
415
# -*- coding: utf-8 -*- import sys def main(): n = int(input()) ins = [] for _ in range(n): t, a = map(int, input().split(" ")) ins.append((t, a)) takahashi = 0 aoki = 0 takahashi, aoki = ins[0] for i, val in enumerate(ins): if i == 0: continue t, a = val m = max(-(-takahashi // t), -(-aoki // a)) takahashi, aoki = t * m, a * m print(takahashi + aoki) if __name__ == "__main__": main()
s470999059
p03962
u952022797
1552083307
Python
Python (3.4.3)
py
Runtime Error
18
3064
420
# -*- coding: utf-8 -*- import sys def main(): n = int(input()) ins = [] for _ in range(n): t, a = map(int, input().split(" ")) ins.append((t, a)) takahashi = 0 aoki = 0 takahashi, aoki = ins[0] for i, val in enumerate(ins): if i == 0: continue t, a = val m = max(-(-takahashi // t), -(-aoki // a)) takahashi, aoki = t * m, a * m print(int(takahashi + aoki)) if __name__ == "__main__": main()
s842149442
p03962
u030626972
1551676706
Python
Python (3.4.3)
py
Runtime Error
17
2940
148
penki = list(map(int,input().split())) checked = [False]*100 for i in range(3): checked[penki[i]]=True ans = checked.count(True) print(ans)
s431718879
p03962
u566574814
1551663985
Python
Python (3.4.3)
py
Runtime Error
17
3060
165
N = int(input()) t0, a0 = 1, 1 for _ in range(N): t, a = map(int, input().split()) n = max((t0- 1)// t+ 1, (a0-1)//a+1) t0, a0 = n*t, n*a print(t0 + a0)