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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s058603599 | p03844 | u175743386 | 1568580592 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 651 | N = int(input())
A = sorted(list(map(int, input().split())))
#print(A)
flg=0
if N % 2 == 0:
for i in range(N//2):
if A[2*i] == A[2*i+1] == 2*i+1:
#print(A[i], A[i+1], 2*i+1)
continue
else:
#print(A[i], A[i+1], 2*i+1)
flg=1
break
if flg==1:
#print('A')
print(0)
else:
#print('B')
print(2**(N//2))
else:
if A[0] != 0:
flg=1
#print('C')
else:
for i in range((N-1)//2):
if A[2*i+1] == A[2*i+2] == 2*(i+1):
continue
else:
flg=1
#print('D')
break
if flg==1:
#print('E')
print(0)
else:
#print('F')
print(2**((N-1)//2)) |
s804786071 | p03844 | u970082363 | 1568296823 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | list = list(map(int,input().split()))
list.sort()
if list[0]+list[1] == list[2]:
print("Yes")
else:
print("No")
|
s353778332 | p03844 | u672542358 | 1567999901 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | a,op,b=input().split()
a=int(a)
b=int(b)
if op="+":
print(a+b)
else:
print(a-b) |
s563911986 | p03844 | u117193815 | 1567954391 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a=input().split()
if a[1]=="+":
print(a[0]+a[2])
else:
print(a[0]-a[2])
|
s357963994 | p03844 | u931489673 | 1567919936 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 50 | s=input()
a=s[0]
b=s[1]+s[2]
print(int(a)+int(b))
|
s190398467 | p03844 | u045408189 | 1567169927 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | a,op,b=input().split()
if op = '+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s139248694 | p03844 | u275861030 | 1566773887 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a, b, c = input().split()
if b = '+':
print(int(int(a) + int(c)))
else:
print(int(int(a) - int(c))) |
s647838789 | p03844 | u275861030 | 1566773768 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 54 | a, b, c = map(int, input().split())
print(int(a b c)) |
s737072290 | p03844 | u703890795 | 1566508641 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 90 | A op B = input().split()
if op == "+":
print(int(A)+int(B))
else:
print(int(A)-int(B)) |
s863631448 | p03844 | u093033848 | 1566205861 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, op, b = map(str, input().split())
a = int(a)
b = int(b)
if op == "+":
print(a + b)
eles:
print(a - b) |
s963065698 | p03844 | u264265458 | 1566186359 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a,b,c=map(input().split())
if b=="+":
print(int(a)+int(c))
else:
print(int(a)-int(c)) |
s387735898 | p03844 | u248670337 | 1566018097 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 28 | print(eval(input().split())) |
s623878401 | p03844 | u204523044 | 1566010370 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | A, op, B = map(str, input().split())
if op == '+':
print(int(A)+int(b))
else:
print(int(A)-int(b))
|
s135563834 | p03844 | u329731898 | 1565798143 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 291 | N=int(input())
T=[int(x) for x in input().split()]
M=int(input())
P=[]
X=[]
for i in range(M):
p1,x1=(int(d) for d in input().split())
P.append(p1)
X.append(x1)
sum1=0
for i in range(N):
sum1+=T[i]
for i in range(M):
temp=sum1
temp=temp-T[P[i]-1]+X[i]
print(temp) |
s176716903 | p03844 | u329731898 | 1565793799 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | A,op,B=(int(x) for x in input().split())
if(op=="+"):
print(A+B)
else:
print(A-B)
|
s114588579 | p03844 | u740047492 | 1565696773 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 79 | A, OP, B== input().split()
a= int(A)
b= int(B)
print(a+b if OP== "+" else a-b)
|
s259953850 | p03844 | u740047492 | 1565696570 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | A, B= map(int(input().split))
OP= input()
P= A + B
M= A - B
print(P if OP== + else M) |
s026152510 | p03844 | u740047492 | 1565696358 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | A, X, B= map(int, input().split())
P= A + B
M= A - B
print(P if X== str(-) else M ) |
s927597638 | p03844 | u395202850 | 1565648033 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | A, op, B = map(int, input().split())
if op == "+":
print(A + B)
if op == "-":
print(A - B)
|
s351421829 | p03844 | u495030644 | 1565353512 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | a, b, c = map(str, input().split())
if b == '+':
print(int(a) + int(b))
elif b =='-':
print(int(a) - int(b))
else:
print("Error") |
s963884651 | p03844 | u495030644 | 1565353443 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 140 | a, b, c = map(str, input().split())
if b == '+':
print(int(a) + int(b))
else if b =='-':
print(int(a) - int(b))
else:
print("Error")
|
s277063131 | p03844 | u235210692 | 1564882755 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 844 | n=int(input())
#データを並び替える
rowdata=[int(i) for i in input().split()]
rowdata.sort()
#nが偶数の時
if n%2==0:
check=[]
a=1
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
for i in range(int(n/2)):
a*=2
a=a%1000000007
print(a)
else:
print(0)
#nが奇数の時
else:
check=[]
a=1
if n==1:
check=[0]
else:
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2))%1000000007)
for i in range(int((n-1)/2)):
a*=2
a=a%1000000007
print(a)
else:
print(0)
|
s894902965 | p03844 | u235210692 | 1564881674 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 560 |
n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()
if n%2==0:
check=[]
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**(n/2)))
else:
print(0)
else:
check=[]
if n==1:
check=[0]
else:
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2)))
else:
print(0) |
s912165180 | p03844 | u235210692 | 1564881274 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 577 | n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()
#nが偶数の時
if n%2==0:
check=[]
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**(n/2)))
else:
print(0)
else:
check=[]
if n==1:
check=[0]
else:
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2)))
else:
print(0) |
s406394816 | p03844 | u235210692 | 1564880456 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 522 |
n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()
#nが偶数の時
if n%2==0:
check=[]
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**(n/2)))
else:
print(0)
else:
check=[]
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2)))
else:
print(0)
|
s434693521 | p03844 | u235210692 | 1564880434 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 522 |
n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()
#nが偶数の時
if n%2==0:
check=[]
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**(n/2)))
else:
print(0)
else:
check=[]
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2)))
else:
print(0)
|
s420451719 | p03844 | u235210692 | 1564880060 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 512 | n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()
#nが偶数の時
if n%2==0:
check=[]
for i in range(1,n,2):
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**(n/2)))
else:
print(0)
else:
check=[]
for i in range(0,n,2):
if i==0:
check.append(i)
else:
check.append(i)
check.append(i)
if check==rowdata:
print(int(2**((n-1)/2)))
else:
print(0) |
s694805985 | p03844 | u844123804 | 1564767638 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | num = input().split()
a,b = int(num[0]), int(num[1])
if num[1]=='+': print(a+b)
else: print(a-b) |
s881929201 | p03844 | u973067113 | 1564755359 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a, op, b = input().split()
if op = '+':
print(int(a) + int(b))
else:
print(int(a) - int(b)) |
s006111008 | p03844 | u452824632 | 1564627483 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | s_input = input().split()
if(s_input[1] == '+'):
print(int(s_input[0]+int(s_input[2])))
else:
print(int(s_input[0]-int(s_input[2]))) |
s297259226 | p03844 | u452824632 | 1564627443 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | s_input = input().split()
if(s_input[1] == '+'):
print(int(s_input[0]+int(s_input[2]))
else:
print(int(s_input[0]-int(s_input[2])) |
s091478832 | p03844 | u003501233 | 1564450833 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | A,c,B=input().split()
if c == "+":
print(A+B)
else:
print(A-B) |
s661709853 | p03844 | u408620326 | 1564362165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | AopB=input().split()
if AopB[1]=='+':
print(int(AopB[0]+int(AopB[2])))
else:
print(int(AopB[0]-int(AopB[2])))
|
s529407704 | p03844 | u921773161 | 1563984661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | a,b,c = input().split()
if b =='+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s541695627 | p03844 | u298297089 | 1563400304 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | x,op,y = int,input().split()
x = int(x)
y = int(y)
print(x+y if op == '+' else x-y)
|
s523607679 | p03844 | u374802266 | 1563336388 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a,b,c=input().split()
if b=='+':
print(a+c)
else:
print(a-c) |
s233114122 | p03844 | u816631826 | 1562995224 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 |
a,op,b=map(int,input().split())
if op=="+":
suma=int(a)+int(b)
print(suma)
elif op=="-":
resta=int(a)-int(b)
print(resta) |
s974618705 | p03844 | u141610915 | 1562901833 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38256 | 665 | N = int(input())
A = list(map(int, input().split()))
A.sort()
mod = 10 ** 9 + 7
i = 0
res = 0
if N == 1:
if A[0] == 0:
print(1)
else:
print(0)
exit(0)
if N % 2 == 1:
res = 1
i = 1
if A[0] == A[1]:
print(0)
exit(0)
if A[0] == 1:
print(0)
exit(0)
else:
res = 2
i = 2
if A[0] != A[1]:
print(0)
exit(0)
if A[0] == 0:
print(0)
exit(0)
while i < N - 1:
if A[i] == A[i + 1]:
if N % 2 == 0:
if A[i] != 2 * (i / 2 + 1) - 1:
res = 0
break
else:
if A[i] != 2 * (i // 2 + 1):
res = 0
break
res *= 2
i += 2
else:
res = 0
break
print(res % mod) |
s091265423 | p03844 | u141610915 | 1562899692 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 338 | N = int(input())
A = list(map(int, input().split()))
res = 1
temp = []
mid = 0
for i in range(N):
if A.count(A[i]) == 2:
if A[i] in temp:
continue
res *= 2
else:
if N % 2 == 1:
if mid == 0:
mid = 1
continue
if i == N - 1:
continue
res = 0
break
temp.append(A[i])
print(res) |
s533162295 | p03844 | u666415539 | 1562590782 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | instr = map(int, input())
a = int(instr[0])
b = int(instr[2])
op = instr[1]
if op == "+":
print (a+b)
else:
print(a-b)
|
s663627727 | p03844 | u666415539 | 1562590609 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 75 | a,op,b = map(int, input())
if op == "+":
print (a+b)
else:
print(a-b)
|
s666162482 | p03844 | u668503853 | 1562428916 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | list=input().split()
if list[1] == "+":print(list[0]+list[2])
else:print(list[0]-list[2]) |
s370317882 | p03844 | u093500767 | 1562191925 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | a, b, c = map(str, input().str())
a = int(a)
c = int(c)
if b=="+":
print(int(a+c))
else:
print(int(a-c)) |
s659366431 | p03844 | u288948615 | 1561941034 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | A, op, B = input().split()
num_A = int(A)
num_B = int(B)
if op == '+':
print(num_A + numb_B)
else:
print(num_A - num_B) |
s080067694 | p03844 | u013594089 | 1561517623 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | a,b,c = input().split()
if b == "+":
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s460107628 | p03844 | u790812284 | 1561442276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | a,b=map(str, input().split())
if a==b:
print("H")
else:
print("D") |
s748122068 | p03844 | u323120917 | 1561304811 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38640 | 111 | p=input().rstrip().split(' ')
if p[1]=='+':
print(int(p[0]) + int(p[1]))
else:
print(int(p[0]) + int(p[1])) |
s886203520 | p03844 | u114648678 | 1560794979 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | a,op,b=input().split()
if op='+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s486958059 | p03844 | u181668771 | 1560578248 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | A, op, B = input().split()
if op == "+":
print(A + B)
else:
print(A - B)
|
s642856508 | p03844 | u560988566 | 1560390378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,op,b = input()
if op == "+":
ans = int(a)+int(b)
else:
ans = int(a)-int(b)
print(ans) |
s556783171 | p03844 | u560988566 | 1560390354 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | a,op,b = input()
if op == "+":
ans = a+b
else:
ans = a-b
print(ans) |
s848193610 | p03844 | u172111219 | 1559885769 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 39152 | 113 | ls = [x for x in input().split()]
if ls[1]=="+":
print(int(ls[0]+ls[2]))
else:
print(int(ls[0]-ls[2]))
|
s715013693 | p03844 | u695429668 | 1559617199 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 84 | a,p,b = list(map(int, input().split()))
if p == '+':
print(a+b)
else:
print(a-b) |
s605537716 | p03844 | u695429668 | 1559616602 | Python | PyPy3 (2.4.0) | py | Runtime Error | 184 | 38384 | 526 | N = int(input())
A = list(map(int, input().split()))
A = sorted(A)[::-1]
memo = [0 for i in range(N)]
memo[0] = N-1
memo[1] = N-1
if N % 2 == 0:
for i in range(2, N):
memo[i] = memo[i-2]-2
if memo[i] != A[i]:
print(0)
exit()
else:
for i in range(2, N-1):
memo[i] = memo[i-2]-2
if memo[i] != A[i]:
print(0)
exit()
# 最初(N//2)**2にしていた、それぞれの場合の数ではなくなってしまう
print((2**(N // 2))%(10**9+7)) |
s495144357 | p03844 | u779455925 | 1559530723 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | a=input.split()
print(int(a[0])+int(a[1]) if a[1]="+" else int(a[0])-int(a[1])) |
s598290670 | p03844 | u779455925 | 1559530716 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | a=input.split()
print(int(a[0])+int(a[1]) if a[1]="+" else int(a[0])-int(a[1])) |
s700312215 | p03844 | u906428167 | 1559188748 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | N = int(input())
test = list(map(int,input().split()))
M = int(input())
for _ in range(M):
a,b = map(int,input().split())
print(sum(test) - test[a] + b) |
s359642745 | p03844 | u906428167 | 1559188506 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 156 | N = int(input())
test = list(map(int,input().split()))
M = int(input())
for _ in range(M):
a,b = int(input()).split()
test[a] = b
print(sum(test)) |
s459061341 | p03844 | u906428167 | 1559188365 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | N = input()
test = list(map(int,input()))
M = input()
for _ in range(M):
a,b = int(input()).split()
test[a] = b
print(sum(test)) |
s266379391 | p03844 | u906428167 | 1559181870 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | a = input().split()
return int(a[0]) + int(a[2]) if a[1] == "+" else int(a[0]) - int(a[2]) |
s156967239 | p03844 | u906428167 | 1559180613 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a = input().split("")
return int(a[0]) + int(a[2]) if a[1] == "+" else int(a[0]) - int(a[2]) |
s616302946 | p03844 | u073549161 | 1559098758 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38640 | 24 | import math
math.log2(2) |
s683484366 | p03844 | u928784113 | 1558938484 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 384 | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
String op = sc.next();
int B = sc.nextInt();
if (op.equals("+")){
System.out.println(A+B);
}
else{
System.out.println(A-B);
}
sc.close();
}
} |
s935940312 | p03844 | u037221289 | 1558842955 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 105 | A X B = map(str,input().split(' '))
if X == '+':
print(int(A) + int(B))
else:
print(int(A) - int(B))
|
s071084195 | p03844 | u037221289 | 1558842932 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | A X B = map(int,input().split(' '))
if X == '+':
print(int(A) + int(B))
else:
print(int(A) - int(B)) |
s027107280 | p03844 | u507116804 | 1558792020 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | print(eval(input().split()) |
s185695801 | p03844 | u795630164 | 1558254345 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a, x, b = input()
if x == '+':
ans = int(a)+int(b)
else:
ans = int(a)-int(b)
print(ans)
|
s432878927 | p03844 | u220345792 | 1557797634 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | _ = input()
T = list(map(int, input().split()))
M = int(input())
for i in range(M):
P, X = map(int, input().split())
ans = sum(T[:P]+T[P+1])+X
print(ans)
|
s425632409 | p03844 | u170324846 | 1557420818 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | A, op, C = map(str, input().split())
if op == "+":
print(int(A) + int(B))
else:
print(int(A) - int(B)) |
s703821907 | p03844 | u589381719 | 1557369208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,c= map(str,input().split())
a=int(a)
c=int(c)
if b=="+":
print(a+c)
else:
print(a-b) |
s554547833 | p03844 | u788856752 | 1557330615 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 20 | print(eval(input())
|
s146480966 | p03844 | u432805419 | 1556673401 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | a = list(input().split())
if a[1] = "+":
print(int(a[0]) + int(a[2]))
else:
print(int(a[0]) - int(a[2])) |
s813562547 | p03844 | u187205913 | 1556382847 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | a,b,c = input().split()
if b=='+':
print(int(a)+int(c))
else:
print(int(a)-int(b)) |
s141497804 | p03844 | u059262067 | 1556151214 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a, b, c = (int(i) for i in input().split())
if b == "+":
print(int(a) + int(c))
else:
print(int(a) - int(c))
|
s132040932 | p03844 | u483640741 | 1556062591 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 161 | # coding: utf-8
A=input('数字を入力>')
op=input('>')
B=input('数字を入力>')
if op == '+':
print(int(A)+int(B))
else:
print(int(A)-int(B)) |
s615553978 | p03844 | u483640741 | 1556058023 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 165 | # coding: utf-8
A=input('数字を入力>')
op=raw_input('>')
B=input('数字を入力>')
if op == '+':
print(int(A)+int(B))
else:
print(int(A)-int(B)) |
s736207016 | p03844 | u483640741 | 1556057906 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 185 | # coding: utf-8
A=input('数字を入力>')
op=raw_input('+又はーを入力>')
B=input('数字を入力>')
if op == '+':
print(int(A)+int(B))
else:
print(int(A)-int(B))
|
s268080844 | p03844 | u483640741 | 1556056598 | Python | Python (2.7.6) | py | Runtime Error | 16 | 3072 | 184 | # coding: cp932
A=input('数字を入力>')
op=raw_input('+又はーを入力>')
B=input('数字を入力>')
if op == '+':
print(int(A)+int(B))
else:
print(int(A)-int(B)) |
s504244202 | p03844 | u481026841 | 1555942410 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | n = input().split()
if n[1] == '+':
print(int(n[0]+n[2]))
else:
print(int(n[0]-n[2])) |
s033919631 | p03844 | u481026841 | 1555942359 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | n = input().split()
if n[2] == '+':
print(int(n[0]+n[4]))
else:
print(int(n[0]-n[4])) |
s803430425 | p03844 | u481026841 | 1555942227 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | a,b,c = input().split()
if b == +:
print(int(a + c))
else:
print(int(a - c)) |
s408848065 | p03844 | u658627575 | 1555422739 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 545 | # ファイルをオープンする
#test_data = open("test.txt", "r")
# 行ごとにすべて読み込んでリストデータにする
#line = test_data.readline()
N = input()
#N = int(line)
#line = test_data.readline()
T = [int(t) for t in input().split()]
#T = [int(t) for t in test_data.readline().split()]
total_time = sum(T)
#line = test_data.readline()
M = input()
#M = int(line)
for i in range(M):
#line = test_data.readline()
P, X = input().split()
#P, X = map(int,line.split())
ans = 0
ans = total_time - T[i] + X
print(ans)
|
s275175542 | p03844 | u163320134 | 1555236924 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b,c=map(str,input().split())
if b=='+':
print(int(a)+int(b))
else:
print(int(b)-int(b)) |
s554564364 | p03844 | u041075929 | 1555192092 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 285 | import sys, os
f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
sys.stdin = open('./input.txt', 'r')
def solve():
a, op, b = input().split()
a = int(a)
b = int(b)
if op == '+':
print(a+b)
elif op == '-':
print(a-b)
solve() |
s251831762 | p03844 | u556016145 | 1555031893 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 19 | print(eval(input()) |
s304139534 | p03844 | u556016145 | 1555031881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3068 | 19 | print(eval(input()) |
s914532659 | p03844 | u121732701 | 1554501270 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | A,op,B = input().split
A = int(A)
B = int(B)
if op=="+":
print(A+B)
else:
print(A-B)
|
s719610072 | p03844 | u748311048 | 1554219596 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 91 | a=int(input());b=str(input());c=int(input())
if b=='+':
print(a+c)
else:
print(a-c)
|
s557997113 | p03844 | u748311048 | 1554219547 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a,b,c=input().split()
if b=='+':
print(a+c)
else:
print(a-c)
|
s860084443 | p03844 | u748311048 | 1554219471 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | a,b,c=map(int,input().split())
if b=='+':
print(a+c)
else:
print(a-c)
|
s137722190 | p03844 | u748311048 | 1554219454 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | a,b,c=map(int,input().split())
if c=='+':
print(a+c)
else:
print(a-c)
|
s782996774 | p03844 | u036363750 | 1554119533 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | a = list(map(str, input().split()))
if a[1] == “+”:
print(int(a[0]) + int(a[2]))
else:
print(int(a[0]) - int(a[2]))
|
s679370492 | p03844 | u036363750 | 1554119440 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | a = list(map(str, input().split()))
if a[1] == “+”:
print(int(a[0]) + int(a[2]))
else:
print(int(a[0]) - int(a[2]))
|
s693111065 | p03844 | u036363750 | 1554119293 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 128 | a = list(map(str, input().split()))
if a[1] == “+”:
print(int(a[0]) + int(a[2]))
else:
print(int(a[0]) - int(a[2]))
|
s631967957 | p03844 | u036363750 | 1554092151 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 124 | a = list(map(str, input().split()))
if a[1] == “+”:
print(int(a[0]) + int(a[2]))
else:
print(int(a[0]) - int(a[2]))
|
s281733657 | p03844 | u728498511 | 1554069560 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a, b, c = input().split()
if b == '+':
print(a+c)
else:
print(a-c) |
s978913971 | p03844 | u633355062 | 1553822760 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 82 | a,b,c=input().split()
a=int(a)
c=int(c)
if b=='+':
print(a+b)
else:
print(a-b) |
s322485347 | p03844 | u923712635 | 1553749358 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | A,op,B = [x for x in input().split()]
A = int(A)
B = int(B)
if(op = '+'):
print(A+B)
else:
print(A-B) |
s068923017 | p03844 | u483645888 | 1553698395 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 560 | import collections
n = int(input())
*pr, = map(int,input().split())
#print(pr)
d = collections.Counter(pr)
#print(d)
mod = 10**9+7
if n % 2 != 0:
if d[0] != 1:
print(0)
exit()
else:
for k, v in d.items():
if k != 0 and v != 2:
print(0)
exit()
elif k%2 != 0:
print(0)
exit()
print(((len(d)-1)**2)%mod)
else:
for ky,vl in d.items():
if ky == 0:
print(0)
exit()
elif ky%2 == 0:
print(0)
exit()
elif vl != 2:
print(0)
exit()
print((len(d)**2)%mod)
|
s392400005 | p03844 | u483645888 | 1553636970 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 225 | n = int(input())
pr = list(map(int,input().split()))
#print(pr)
m = int(input())
f = lambda:map(int,input().split())
for i in range(m):
n, d = f()
#print(n,d)
mot = pr[n-1]
pr[n-1] = d
print(sum(pr))
pr[n-1] = mot |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.