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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s756241451 | p03962 | u869265610 | 1587301154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | s=input()
b=input()
n=input()
list=[s,b,n]
print(len(set(list))) |
s916636906 | p03962 | u201802797 | 1586909540 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | # solution
nim, mike = map(int, input().split())
print(mike * (mike - 1) ** (nim - 1)) |
s501605468 | p03962 | u048176319 | 1586846748 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 514 | ls = list()
lt = list()
la = list()
LS = list()
LT = list()
LA = list()
N = int(input())
for i in range(1, N+1):
T, A = map(int, input().split())
X = T + A
ls.append(X)
lt.append(T)
la.append(A)
LS.append(X)
LT.append(T)
LA.append(A)
print(lt, la, LT, LA)
for j in range(1, N):
while ls[j] < ls[j-1]:
ls[j] += LS[j]
while lt[j] < lt[j-1] or la[j] < la[j-1]:
lt[j] += LT[j]
la[j] += LA[j]
print(lt[j], la[j], LT[j], LA[j])
print(lt[N-1] + la[N-1]) |
s555437843 | p03962 | u652656291 | 1586829517 | 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 c == a:
print(2)
elif:
print(3) |
s404520517 | p03962 | u000770457 | 1586181915 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 73 | a=[]
for i in range(3):
a.append(int(input()))
set(a)
print(len(a)) |
s423247195 | p03962 | u263691873 | 1586121137 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | a=int(input())
b=int(input())
c = int(input())
if a == b == c:
print(1)
elif a == b or b == c or c == a:
print(2)
else:
print(3) |
s295198000 | p03962 | u292978925 | 1586112727 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | a = int(input().split())
print(len(list(set(a)))
|
s610606009 | p03962 | u779728630 | 1585969438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 51 | s = set(map(int, input().split()))
print(s.count()) |
s783986202 | p03962 | u852790844 | 1585963261 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 300 | from math import ceil,floor
import sys
n = int(input())
T = [0 for i in range(n)]
A = [0 for i in range(n)]
for i in range(n):
T[i],A[i] = map(int,input().split())
t = 1
a = 1
for i in range(n):
t = T[i]*max(ceil(t/T[i]), ceil(a/A[i]))
a = A[i]*max(ceil(t/T[i]), ceil(a/A[i]))
print(t+a) |
s351814800 | p03962 | u659142359 | 1585918149 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | balls, colors = map(int,input().split())
ans = 1
for i in range(1,balls+1):
if i == 1:
ans *= colors
else:
ans *= colors - 1
print(ans) |
s434918526 | p03962 | u063346608 | 1585680710 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | a,b,c = input().split()
score = 1
if a != b:
score = score + 1
elif b !=c:
score = score + 1
elif c !=a:
else:
score = score
print(score) |
s799664366 | p03962 | u317711717 | 1585352448 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | import math
l=[]
for i in range(3):
a=input()
l.append(a)
print(len(set(l)))
|
s697846706 | p03962 | u440129511 | 1585270963 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | if a==b==c:print('1')
elif a==b or b==c or c==a:print('2')
else:print('3') |
s849052972 | p03962 | u440129511 | 1585240091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 132 | a=int(input())
b=int(input())
c=int(input())
if a==b==c:
print(1)
elif a==b or b==c or c==a:
print(2)
else:print(3)
print(a,b,c) |
s447664528 | p03962 | u440129511 | 1585239321 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a=int(input())
b=int(input())
c=int(input())
if a=b=c:
print(1)
elif a=b or b=c or c=a:
print(2)
else:print(3) |
s444448063 | p03962 | u089142196 | 1584893084 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 54 | a,b,c=map(int,input().split())
print(len(set(a,b,c))) |
s124179849 | p03962 | u089142196 | 1584893064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | a,b,c=map(int,input().split())
print(len(set(a,b,c)) |
s692922268 | p03962 | u393881437 | 1584454862 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | n,c = list(map(int,input().split()))
print(c*((c-1)**(n-1)))
|
s162015958 | p03962 | u016323272 | 1584416653 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 194 | #ABC046.A
a = int(input())
b = int(input())
c = int(input())
if a == b==c:
print(1)
elif a == b !=c:
print(2)
elif a ==c !=b:
print(2)
elif b ==c!=a:
print(2)
else:
print(3) |
s647141571 | p03962 | u212831449 | 1584324869 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | n,k = map(int,input().split())
ans = k
for i in range(1,n):
ans = ans*(k-1)
print(ans)
|
s479867588 | p03962 | u137808818 | 1583770090 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | List = list(map(int,input().split()))
print(len(List(set(List)))) |
s005250152 | p03962 | u035445296 | 1583521594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | abc = list(map(int, input().split()))
print(len(set(abc)) |
s058196603 | p03962 | u620157187 | 1582618803 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | total = set(list(map(int, input().split)))
print(len(total)) |
s737515165 | p03962 | u368796742 | 1582599484 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | print(len(set(list(map(int,input().split()))))
|
s360492846 | p03962 | u052221988 | 1582419610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | wlist = []
for i in range(3) :
w = input()
if not w in wlist :
wlist.append(w)
print(len(wlist)) |
s580819431 | p03962 | u816631826 | 1582352975 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | n=[]
n=input(). split(" ")
sort (n)
c=0
p=0
if (n[1]!=n[0]):
c=1
if(n[1]!=n[2]):
p=1
print(c+p+1)
|
s667958449 | p03962 | u089230684 | 1582351868 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 76 | from collections import counter
n=[]
n=input()
p=counter(n). keys()
print(p) |
s384132487 | p03962 | u018679195 | 1582351730 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 81 | from collections import collector
n=[]
n=input()
p=counter(n). keys()
print(p) |
s470485980 | p03962 | u089230684 | 1582351632 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 102 | l=list(map(int(input().split()))
n=1
ml=[]
for i in l:
if i not in ml:
ml.append(i)
print(len(ml))
|
s957183008 | p03962 | u863370423 | 1582351626 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | a=list(map(int,input().split())
return len(set(a)) |
s179269555 | p03962 | u123273712 | 1582272855 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 231 | a,b,c = map(int,input().split())
if a != b != c:
print(3)
if a == b and a != c and b != c:
print(2)
if b == c and b != a and c != a:
print(2)
iif a == c and a != b and c != b:
print(2)
if a == b == c:
print(1) |
s394348064 | p03962 | u363836311 | 1581899295 | 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(set))
|
s463139966 | p03962 | u767995501 | 1581872532 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | c = list(input().split())
print(len(set(c)) |
s142163482 | p03962 | u746419473 | 1581714960 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a, b, c = map(int, input().split())
ans = [False]*100
ans[a] |= True
ans[b] |= True
ans[c] |= True
print(sum(ans))
|
s563930528 | p03962 | u772649753 | 1581310024 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 209 | color = []
color.append(int(input(),range(3)))
x = count(color[0])
y = count(color[1])
if x == 1 and y == 1:
print("3")
else if x == 1 and y == 2:
print("2")
else if x == 2:
print("2")
else:
print("1") |
s836228028 | p03962 | u475598608 | 1581103076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | a=int(input())
b=int(input())
c=int(input())
count=3
if a==b:
count=count-1
if b==c:
count=count-1
if c==a:
count=count-1
print(count)
|
s061289107 | p03962 | u771167374 | 1580370694 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a= set(map(int, input().split()))
print(len(set(X))) |
s756150896 | p03962 | u067962264 | 1580089160 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 117 | a,b,c = list(map(int, input().split()))
if a==b==c:
print(1)
elif a==b or b==C or a==c:
print(2)
else:
print(3) |
s300060497 | p03962 | u067962264 | 1580089035 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 152 | a,b,c = list(map(int, input().split()))
if a==b==c:
print(1)
elif (a==b and b != c) or (a!=b and b==C) or (a==c and a!=b):
print(2)
else:
print(3) |
s875769640 | p03962 | u067962264 | 1580084851 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 75 | l= [int(input()) for in range(3)]
c = collections.Counter(l)
print(len(c)) |
s140846618 | p03962 | u711626986 | 1579821579 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a, b, c= map(int, input().split())
if a=b=c:
print(1)
elif a=b:
print(2)
elif b=c:
print(2)
else:
print(3) |
s318979092 | p03962 | u287880059 | 1579384331 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | c = list(input().split())
print(len(set(c)) |
s649595827 | p03962 | u287880059 | 1579384269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | c = lsit(input().split())
print(list(set(c)) |
s360908714 | p03962 | u871596687 | 1579370509 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | a,b,c = input().split()
int(sum) = 1
if a == b:
sum +=1
if a == c:
sum +=1
if b == c:
sum += 1
print(sum) |
s612959367 | p03962 | u516447519 | 1578606855 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | N,K = [int(i) for i in input().split()]
print(K * (K-1) ** (N-1))
|
s934756180 | p03962 | u633450100 | 1578495628 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 55 | a = [int(i) for i in input().split()]
print(len(set(a)) |
s996019755 | p03962 | u380933932 | 1578472096 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 47 | a=list(map(input().split()))
print(len(set(a))) |
s811089537 | p03962 | u995062424 | 1578367320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 197 | a = input().split()
num = 3
if a[0] == a[1]:
num = num - 1
if a[0] == a[2]:
num = num - 1:
elif a[0] == a[2]:
num = num - 1
elif a[1] == a[2]:
num = num - 1
print(num) |
s521625701 | p03962 | u995062424 | 1578367231 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 197 | a = input().split()
num = 3
if a[0] == a[1]:
num = num - 1
if a[1] == a[2]:
num = num - 1:
elif a[0] == a[2]:
num = num - 1
elif a[1] == a[2]:
num = num - 1
print(num) |
s881376522 | p03962 | u995062424 | 1578365935 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | a = int(input())
b = int(input())
c = int(input())
num = 3
if a == b:
num = num - 1
if b == c:
num = num - 1
elif b == c:
num = num - 1
print('num') |
s741504930 | p03962 | u995062424 | 1578365848 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | a = int(input())
b = int(input())
c = int(input())
num = 3
if a == b:
num = num - 1
if b == c:
num = num - 1
elif b == c:
num = num - 1
print(num) |
s128099464 | p03962 | u079022116 | 1578286161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a=set(list(map,input().split()))
print(len(a)) |
s078839454 | p03962 | u079022116 | 1578286123 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 40 | a=set(map,input().split())
print(len(a)) |
s457114405 | p03962 | u148551245 | 1578018229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | s = set(map(int, input().split()))
print(len(set)) |
s166207435 | p03962 | u608726540 | 1577824233 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | 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)
|
s533257494 | p03962 | u608726540 | 1577805904 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | 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)
|
s687540837 | p03962 | u626157306 | 1577309464 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<int> x;
int a,b,c;
cin>>a>>b>>c;
x.insert(a); x.insert(b); x.insert(c);
cout<<x.size()<<endl;
return 0;
}
|
s010194340 | p03962 | u344178887 | 1577287499 | Python | Python (3.4.3) | py | Runtime Error | 150 | 12484 | 180 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import numpy as np
from collections import deque as deq
N, K = map(int, input().split())
print(K * ((K - 1)**(N - 1)))
|
s340504657 | p03962 | u536717874 | 1577251280 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | # coding: utf-8
import sys
def main(argv=sys.argv):
dict = {input().split()}
print(dict)
return 0
if __name__ == '__main__':
sys.exit(main()) |
s615993764 | p03962 | u228026606 | 1577249117 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 195 | # coding: utf-8
import sys
def main(argv=sys.argv):
N, K = map(int, input().split())
print(K * ((K - 1) ** (N - 1)))
return 0
if __name__ == '__main__':
sys.exit(main())
|
s296539916 | p03962 | u374146618 | 1577235397 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | p = [int(x) for x in input().split()]
print(p.unique().count()) |
s934375789 | p03962 | u609814378 | 1576953695 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | n,k = map(int,input().split())
print(k * (k-1)**(n-1)) |
s207895275 | p03962 | u181215519 | 1576610471 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | cols = map( int, input().split() )
cols set = set( cols )
print( len( cols set ) ) |
s717435309 | p03962 | u181215519 | 1576610097 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | cols = list( int, input().split() )
num col = cols.unique();
print( num col ) |
s769262176 | p03962 | u987164499 | 1576546797 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 701 | from sys import stdin
import math
n = int(stdin.readline().rstrip())
li = [list(map(int,stdin.readline().rstrip().split())) for _ in range(n)]
for i in range(1,n):
if li[i][0] >= li[i-1][0] and li[i][1] >= li[i-1][1]:
continue
elif li[i][0] >= li[i-1][0] and li[i][1] < li[i-1][1]:
bai = math.ceil(li[i-1][1]/li[i][1])
li[i][0] *= bai
li[i][1] *= bai
elif li[i][0] < li[i-1][0] and li[i][1] >= li[i-1][1]:
bai = math.ceil(li[i-1][0]/li[i][0])
li[i][0] *= bai
li[i][1] *= bai
else:
bai = max(math.ceil(li[i-1][0]/li[i][0]),math.ceil(li[i-1][1]/li[i][1]))
li[i][0] *= bai
li[i][1] *= bai
print(sum(li[-1])) |
s162174933 | p03962 | u020390084 | 1576483329 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | N,K = map(int,input().split())
print(K*(K-1)**(N-1))
|
s675166602 | p03962 | u905582793 | 1576421605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | print)(len(set(list(map(int,input().split())))) |
s679146625 | p03962 | u994521204 | 1576383602 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 53 | a,b,c=map(int,input().split())
print(len(set(a,b,c))) |
s830479125 | p03962 | u680851063 | 1576342119 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | a=input().split()
if a[0]==a[1]==a[2]:
print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
print(3)
else:
print(2)
|
s815180850 | p03962 | u680851063 | 1576342051 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | a=input().split()
#a=int(input())
#b=int(input())
#c=int(input())
#d=int(input())
if a[0]==a[1]==a[2]:
print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
print(3)
else:
print(2)
|
s268829709 | p03962 | u680851063 | 1576342002 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | a=input().split()
#a=int(input())
#b=int(input())
#c=int(input())
#d=int(input())
if a[0]==a[1]==a[2]:
print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
print(3)
else:
print(2)
|
s951814974 | p03962 | u680851063 | 1576341955 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | a=input().split()
#a=int(input())
#b=int(input())
#c=int(input())
#d=int(input())
if a[0]==a[1]==a[2]:
print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
print(3)
else:
print(2)
|
s547461197 | p03962 | u680851063 | 1576341930 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | a=input().split()
#a=int(input())
#b=int(input())
#c=int(input())
#d=int(input())
if a[0]==a[1]==a[2]:
print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
print(3)
else:
print(2)
|
s857335382 | p03962 | u328090531 | 1575649511 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | n = list(map(int, input().split()))
ans = set(n)
print(ans.count)
|
s896809485 | p03962 | u236592202 | 1575383615 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 278 | a=int(input())
b=int(input())
c=int(input())
if a==b and b==c and a==c: #全部一緒のとき
print("1")
elif a!=b and b!=c and a!=c: #全部違うとき
print("3")
elif a==b and b!=c:
print("2")
elif a==c and c!=b:
print("2")
elif c==b and a!=c:
print("2") |
s172817772 | p03962 | u308650788 | 1574852571 | Python | Python (3.4.3) | py | Runtime Error | 25 | 3828 | 133 | import math
from string import ascii_lowercase
a = int(input())
b = int(input())
c = int(input())
d = set((a, b, c))
print(len(d))
|
s884995291 | p03962 | u616188005 | 1574785800 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | l = list(map(int,input()split()))
ans = list(dict.fromkeys(l))
print(len(ans)+1) |
s261591715 | p03962 | u467831546 | 1574635679 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 168 | a = int(input())
b = int(input())
c = int(input())
1 < a, b, c < 100
if a == b == c:
print(1)
else:
if a != b != c:
print(3)
else:
print(2) |
s926687652 | p03962 | u143278390 | 1574291003 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 153 | import math
n=int(input())
A=B=1
for i in range(n):
x,y=[int(i) for i in input().split()]
n=max(-(-A//x),-(-B//y))
A=n*x
B=n*y
print(A+B) |
s273486253 | p03962 | u007263493 | 1574133196 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 54 | N, K = map(int,input().split())
print(K*(K-1)**(N-1))
|
s815903741 | p03962 | u007263493 | 1574133074 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | N, K = map(int,input().split())
print(K * ((K-1)**(N-1))) |
s110498721 | p03962 | u007263493 | 1574133045 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 62 | N, K = map(int,input().split())
print(int(K * ((K-1)**(N-1)))) |
s271118536 | p03962 | u007263493 | 1574132958 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | N,K = map(int,input().split())
print(int(K * ((K-1) ** (N-1)))) |
s524654665 | p03962 | u007263493 | 1574132862 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | N,K = map(int,input().split())
print(K * ((K-1) ** (N-1)))
|
s392126332 | p03962 | u557494880 | 1573527100 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | a,b,c = map(int,input().split())
if a == b:
i = 1
if b == c:
j = 1
if c == a:
k = 1
if a == b & b == c:
l = -1
print(3-(i+j+k+l)) |
s302132476 | p03962 | u148551245 | 1572376219 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 60 | int(input(a, b, c))
set(pennki) = (a, b, c)
len(set(pennki)) |
s356845422 | p03962 | u677400065 | 1571332493 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | a = list(map(int,input().split()))
c = 0
for i in range(3):
for j in range(i:3):
if a[i] == a[j]:
c+=1
print(3-c) |
s498768388 | p03962 | u626468554 | 1571194148 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 154 | #n = int(input())
a,b,c = map(int,input().spkit())
if (a==b and b == c):
print(1)
elif (a==b or b == c or a == c):
print(2)
else:
print(3)
|
s689888969 | p03962 | u626468554 | 1571194091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | #n = int(input())
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)
|
s117324209 | p03962 | u625741705 | 1570382172 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 239 | #include <bits/stdc++.h>
using namespace std;
int main() {
//input
int a,b,c;
cin >> a >> b >> c;
int count = 0;
if(a==b){
count--;
}
if(b==c){
count--;
}
cout << count;
return 0;
} |
s360251270 | p03962 | u287431190 | 1570218718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | a,b,c = map(int, input().split())
if a==b==c:
print(1)
elif a==b/=c:
print(2)
elif a==c/=b:
print(2)
elif c==b/=a:
print(2)
else:
print(3) |
s661436400 | p03962 | u873059840 | 1570206328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | N = int(input())
K = int(input())
answer = 0
if(N==1):
print(K)
else:
answer = K*(N-1)*(K-1)
print(answer)
|
s204631747 | p03962 | u153896700 | 1570099218 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 200 | from math import factorial
n,k = map(int,input().split(' '))
ans = 0
if n==k:
ans = factorial(k)
elif n>k:
ans = factorial(k) * pow(k-1,n-k)
else:
ans = factorial(k)//factorial(k-n)
print(ans) |
s376124660 | p03962 | u381246791 | 1570042033 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | N,K=map(int,input().split())
answer=K
answer*=(K-1)**(N-1)
#answer=K*pow(K-1,N-1)
print(answer) |
s250870018 | p03962 | u672898046 | 1569385601 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | l = list(map(int, input().split()))
print(len(list(set(l))) |
s309233067 | p03962 | u296518383 | 1568652652 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a=set(list(input.split()))
print(len(list(a))) |
s429484534 | p03962 | u296518383 | 1568618485 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 40 | a=set(list(input.split()))
print(len(a)) |
s948201852 | p03962 | u296518383 | 1568618466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | a=set(input.split())
print(len(a)) |
s357626440 | p03962 | u871596687 | 1568158327 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 76 | pen = list(map(str,input().split()))
print(len(collections.Counter(pen)))
|
s619732995 | p03962 | u871596687 | 1568158248 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | pen = list(map(str,input().split()))
print(collections.Counter(pen)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.