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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s596725561 | p03844 | u025287757 | 1595126500 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9056 | 95 | a,b,c=map(str, input().split())
if b=="+":
print(int(a)+int(b))
else:
print(int(a)-int(b))
|
s530378751 | p03844 | u025287757 | 1595126432 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8960 | 94 | a,b,c=map(str, input().split())
if b=="+":
print(int(A)+int(B))
else:
print(int(A)-int(B)) |
s981177073 | p03844 | u492910842 | 1595102773 | Python | PyPy3 (7.3.0) | py | Runtime Error | 98 | 74596 | 19 | print(eval(input()) |
s180967849 | p03844 | u786020649 | 1594775682 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9028 | 173 | def main(a,op,b):
if op=='+':
return int(a)+int(b)
elif op=='-':
return int(a)-int(b)
if __init__=='__main__':
a,op,b=input().split()
print(main(a,op,b)) |
s926539704 | p03844 | u316603606 | 1594425323 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9028 | 89 | a,b,c = input ().split ()
a,b = int (a,b)
if b == '+':
print (a+b)
else:
print (a-b)
|
s970682220 | p03844 | u168416324 | 1593781023 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8976 | 84 | a,op,b=imput().split()
a=int(a)
b=int(b)
if op=="+":
print(a+b)
else:
print(a-b) |
s358573217 | p03844 | u858670323 | 1593553815 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8988 | 123 | s = map(str,input().split())
ans = 0
if s[1]=='+':
ans = int(s[0])+int(s[2])
else:
ans = int(s[0])-int(s[2])
print(ans) |
s209010282 | p03844 | u088488125 | 1593275835 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8868 | 88 | a,op,b=input().split()
a=int(a)
b=int(b)
if op="+":
print(a+b)
if op="-":
print(a-b) |
s635102774 | p03844 | u008022357 | 1592193620 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 100 | a, op, b = input().split()
if(op == "+"):
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s496085626 | p03844 | u667694979 | 1591897993 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 88 | A,op,B=input().split()
if op=='+':
print(int(A)+int(B))
else:
print(int(-A)-int(B)) |
s220821412 | p03844 | u393881437 | 1591404939 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 180 | n = int(input())
t = list(map(int,input().split()))
m = int(input())
for i in range(m):
p,x = list(map(int,input().split()))
a = t.copy()
a[p-1] = x
print(sum(a))
|
s265610139 | p03844 | u073852194 | 1591242664 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | A, op, B = map(int, input().split())
if op == '+':
print(A + B)
else:
print(A - B) |
s421831983 | p03844 | u778348725 | 1590971382 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | a,b=int(input().split())
op = input().split()
if(op == "+"):
print(a+b)
elif(op == "-"):
print(a-b)
|
s221316455 | p03844 | u600261652 | 1590894635 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 70 | A, B, C = map(int, input().split())
print(A+C if str(B)=="+" else A-C) |
s282991672 | p03844 | u600261652 | 1590894537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | A, B, C = map(int, input().split())
B = str(B)
print(ABC) |
s815358060 | p03844 | u600261652 | 1590894455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | A, B, C = map(int, input().split())
b = str(B)
print(A+C if b == "+" else A-C) |
s615845182 | p03844 | u600261652 | 1590894318 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | A, B, C = map(int, input().split())
print(A+C if B == "+" else A-C) |
s038732650 | p03844 | u634873566 | 1590884032 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | a, op, b = map(str, input().split())
print(eval(f"{a}{op}{b}")) |
s911753594 | p03844 | u397953026 | 1590445444 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 72 | a,b,c = input().split()
if b == "+":
print(a+c)
else:
print(a-b) |
s117539122 | p03844 | u956547804 | 1590282097 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 77 | a,o,b=map(str,input().split())
if o=='+':
print(a+b)
else:
print(a-b) |
s240514387 | p03844 | u956012380 | 1590017294 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38256 | 97 | s=input()
if s[1] == '-':
print(int(s[0]) - int(s[2]))
else:
print(int(s[0]) + int(s[2])) |
s087485116 | p03844 | u956012380 | 1590017144 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38512 | 19 | print(eval(input()) |
s126322494 | p03844 | u728611988 | 1589933101 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a, op, b = map(int, input().split())
if op =="+":
print(int(a+b))
else:
print(int(a-b)) |
s556184649 | p03844 | u728611988 | 1589933065 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | a, op, b = map(int, input().split())
if op =="+":
print(a+b)
else:
print(a-b) |
s919153380 | p03844 | u854992222 | 1589856265 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a, op, b = map(input().split())
if op == '+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s662057226 | p03844 | u854992222 | 1589854428 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a, op, b = map(input().split())
if op == '+':
print(int(a)+int(b)
else:
print(int(a)-int(b)) |
s342096883 | p03844 | u475966842 | 1589663047 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 80 | a,op,b=input()
a=int(a)
b=int(b)
if op=="+":
print(a+b)
else:
print(a-b)
|
s326536503 | p03844 | u441320782 | 1589340017 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | A,B,C=map(str,input().split())
if B=="+":
print(A+C)
else:
print(A-C) |
s227732063 | p03844 | u711238850 | 1589140738 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | n = int(input())
t = tuple(map(int,input().split()))
m = int(input())
d = []
for _ in range(m):
d.append(tuple(map(int,input().split())))
for i,t_i in d:
print(sum(t)-t[i-1]+t_i)
|
s693840328 | p03844 | u296160120 | 1588692853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1080 | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>
#include <map>
#include <set>
#include <deque>
#include <utility>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repk(i, k, n) for (int i = k; i < n; i++)
#define MOD 1e9 + 7
#define INF 1e9
#define SENTINEL 2e9
#define PIE 3.14159265358979323
template <class T>
inline bool chmin(T &a, T b){if (a > b){a = b;return true;}return false;}
template <class T>
inline bool chmax(T &a, T b){if (a < b){a = b;return true;}return false;}
template <class T>
inline T GCD(T a, T b){if (b == 0) return a; else return GCD(b, a % b);}
template <class T>
inline T LCM(T a, T b) {return (a * b) / GCD(a, b);}
void ans(bool flag){
if (flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
int main(){
int a, b;
string s;
cin >> a >> s >> b;
if (s=="+")
cout << a + b << endl;
else
cout << a - b << endl;
} |
s352712523 | p03844 | u257442624 | 1588623498 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 120 | X = list(map(input().split()))
A, B = int(X[0]), int(X[2])
op = X[1]
if op == '+':
print(A + B)
else:
print(A - B) |
s354758124 | p03844 | u257442624 | 1588623449 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | X = list(map(input().split()))
A, B = int(X[0]), int(X[2])
op = X[1]
if op == '+':
print(A + B)
else:
print(A - B) |
s478911018 | p03844 | u806403461 | 1588536830 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 78 | A, op, B = input().split()
if op == '+':
print(A+B)
else:
print(A-B)
|
s284117540 | p03844 | u090406054 | 1588382296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,op,b=map(str,input().split())
A=int(a)
B=int(b)
if op="+":
print(A+B)
else:
print(A-B) |
s939288546 | p03844 | u095094246 | 1588037627 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | inp = input().split()
a=inp[0]
b=inp[2]
if inp[1]=='+':
print(a+b)
else:
print(a-b) |
s525064513 | p03844 | u115877451 | 1587943165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b,c=map(str,input().split())
if b=='-':
print(int(a)-int(c))
else:
print(int(a)+int(b)) |
s529994861 | p03844 | u227085629 | 1587785928 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a,b,c = input().split())
if b = '+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s452478777 | p03844 | u106181248 | 1587758281 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 108 | li = list(map(int,input().split()))
x = int(li[0])
y = int(li[2])
if li[1] = "+" print(x+y) else print(x-y) |
s070460660 | p03844 | u816631826 | 1587743356 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | a,b,c=input()
a=int(a)
c=int(c)
if b=='+':
s=a+c
else:
s=a-c
print(s)
|
s139627806 | p03844 | u557953657 | 1587497592 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 119 | s = list(input().split())
if s[1] == "+":
print(int(s[0]) + int(s[2]))
if s[1] == "-":
print(int(s[0]) - int(s[1])) |
s735131289 | p03844 | u252964975 | 1587301778 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,c=str(int, input().split())
if b == '+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s630548272 | p03844 | u652656291 | 1586828897 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | a,b,c = map(str,input().split())
if b == '+':
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s193852018 | p03844 | u289162337 | 1586799449 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 100 | a, b, c = map(str, input().split())
if b == "+":
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s224496566 | p03844 | u716660050 | 1586771077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | l=input().split()
print(l[0]+l[2] if l[1] == '+' else l[0]-l[2]) |
s589536881 | p03844 | u106489129 | 1586638038 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | a,b,c=map(int,input().split())
print(a+b+c) |
s563754497 | p03844 | u852790844 | 1586381572 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 591 | import sys
from collections import deque
mod = 10**9 + 7
n = int(input())
a = deque(sorted(list(map(int, (input().split())))))
if n % 2 == 0:
for i in range(n//2):
b = a.popleft()
c = a.popleft()
if b != i*2+1 or c != i*2+1:
print(0)
sys.exit()
print(pow(2, n//2, mod))
if n % 2 == 1:
if a.popleft() != 0:
print(0)
sys.exit()
for i in range(n//2):
b = a.popleft()
c = a.popleft()
if b != (i+1)*2 or c != (i+1)*2:
print(0)
sys.exit()
print(pow(2, n//2, mod)) |
s481854213 | p03844 | u123745130 | 1586309868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | a,b,c=input().split()
a=int(a)
b=int(b)
if b=="+":
print(a+b)
else:print(a-b) |
s110143609 | p03844 | u123745130 | 1586309768 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a,b,c=input().split()
if b=="+":
print(a+b)
else:print(a-b) |
s149989430 | p03844 | u772649753 | 1586211048 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 92 | a,b,op = input().split()
a = int(a)
b = int(b)
if op == '+':
print(a+b)
else:
print(a-b) |
s978939738 | p03844 | u772649753 | 1586210937 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 89 | a,b = map(int,input().split())
op = input()
if op == "+":
print(a+b)
else:
print(a-b) |
s504697330 | p03844 | u772649753 | 1586210915 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b = map(int,input().split())
op = input()
if op == "+":
print(int(a+b))
else:
print((a-b)) |
s742688366 | p03844 | u772649753 | 1586210818 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 83 | a,b = map(int,input().split())
if op == "+":
print(int(a+b))
else:
print((a-b)) |
s895502921 | p03844 | u772649753 | 1586210799 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | a,b = map(int,input().split())
if op == "+":
print(a+b)
else:
print(a-b) |
s718344005 | p03844 | u000770457 | 1586183529 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | a = list(input().split())
if a[1]=='+':
print(int(a[0])+int(a[2]))
else if a[1]=='-':
print(int(a[0])-int(a[2]))
|
s775841287 | p03844 | u519721530 | 1586031305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | A, op, B = map(int, input().split())
if op == '+':
print(A+B)
else:
print(A-B) |
s983091277 | p03844 | u519721530 | 1586031258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | A, op, B = map(int, input().split())
if op == '+':
print(A+B)
elif op == '-':
print(A-B) |
s415938072 | p03844 | u870297120 | 1586009448 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | a, op, b = map(str, input().split(' '))
if op == '+':
print(int(a) + int(b))
else:
print(ans = int(a) - int(b)) |
s342423775 | p03844 | u577138895 | 1585971555 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 85 | a, p, b = map(int, input().split())
if p == "+":
print(a + b)
else:
print(a - b) |
s508191875 | p03844 | u627600101 | 1585971070 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 594 | N=int(input())
A=list(map(int,input().split()))
A.sort()
ans=1
mod=10**9+7
if N%2==0:
for k in range(N//2):
if A[2*k]==2*k+1 and A[2*k+1]==2*k+1:
ans=ans*2%mod
continue
else:
ans=0
break
if N%2==1:
if A[0]==0:
ans=2
for k in range(N//2-1):
if A[2*k+2]==2*k+2 and A[2*k+1]==2*k+2:
ans=ans*2%mod
continue
else:
ans=0
break
else:
ans=0
if N==1:
if A[0]==0:
ans=1
else:
ans=0
print(ans) |
s176868978 | p03844 | u931173291 | 1585964275 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | a,b,c = input().split()
a = int(a)
c = int(b)
if b == '+':
print(a + c)
elif b == '-':
print(a - c)
else:
print('error') |
s355000791 | p03844 | u535659144 | 1585937700 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | x,y,z = input().split()
if y=="+":
print(int(x)+int(y))
else:
print(int(x)-int(y)) |
s806844744 | p03844 | u342563578 | 1585708182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 404 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i)
|
s562078917 | p03844 | u342563578 | 1585708158 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s906647727 | p03844 | u342563578 | 1585708120 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s032698266 | p03844 | u342563578 | 1585708092 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s918646282 | p03844 | u342563578 | 1585707923 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s056253535 | p03844 | u342563578 | 1585707785 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s626936752 | p03844 | u342563578 | 1585707694 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 403 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
for i in time_cal():
print(i) |
s920265896 | p03844 | u342563578 | 1585707648 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 419 | N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
s = 0
for i in range(0,N):
s = s+Tlist[i]
return s
def time_cal():
empty = []
for i in range(0,M):
empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
return empty
print(time_sum)
for i in time_cal():
print(i) |
s842741805 | p03844 | u342563578 | 1585700919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A, op, B = input(),split()
if op is '+':
print(int(A)+int(B))
if op is '-':
print(int(A)-int(B)) |
s892217205 | p03844 | u342563578 | 1585700874 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | A, op, B = input(),split()
if op is '+':
print(int(A)+int(B))
if op is '-':
print(int(A)-int(B)) |
s006534458 | p03844 | u342563578 | 1585700779 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | A, op, B = input(),split()
if op == '+':
print(int(A)+int(B))
if op == '-':
print(int(A)-int(B)) |
s849650943 | p03844 | u342563578 | 1585700729 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A, op, B = input(),split()
if op == '+':
print(int(A)+int(B))
if op == '-':
print(int(A)-int(B)) |
s516637051 | p03844 | u342563578 | 1585700665 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | A, op, B = input(),split()
if op = '+':
print(int(A)+int(B))
if op = '-':
print(int(A)-int(B)) |
s018054004 | p03844 | u342563578 | 1585700594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | A, op, B = input(),split()
if op = '+':
print(A+B)
if op = '-':
print(A-B) |
s311309631 | p03844 | u045767587 | 1585672823 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 141 | A,B,C=(int(x) for x in input().split())
if B is "+":
n = int(A) + int(C)
print(n)
elif B is "-":
n = int(A) - int(C)
print(n) |
s350799286 | p03844 | u777078967 | 1585533043 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 196 | n=int(input().rstrip())
t=input().rstrip().split()
t=[int(x) for x in t]
m=int(input().rstrip())
for i in range(m):
data= input().rstrip().split()
print(sum(t)-t[int(data[0])-1]+int(data[1])) |
s064810667 | p03844 | u816631826 | 1585466066 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,c=input().split()
a=int(a)
c=char(c)
b=int(b)
if c=='+' :
print(a+b)
else
print(a-b) |
s272654893 | p03844 | u816631826 | 1585464276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 96 | s=str(input())
if s[1]=='+':
print(int(s[0])+int(s[2]))
else:
print(int(s[0])-int(s[2])) |
s247376785 | p03844 | u863370423 | 1585464076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 |
a=input()
res=0
if a[1]=="+":
res=int(a[0])+int(a[2])
else:
res=int(a[0])-int(a[2])
print(res)
|
s646105038 | p03844 | u719967911 | 1585460963 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 313 | import math
n=input()
mod = int(1e9) + 7
a=list(map(int,raw_input().split()))
if(len(a)%2==0 and a.count(0)>0):
print(0)
elif(len(a)%2!=0 and a.count(0)>1):
print(0)
else:
res=0
b=set(a)
if(a.count(0)):
print(pow(2,len(b)-1,mod))
else:
print(pow(2,len(b),mod))
|
s106970349 | p03844 | u089230684 | 1585460605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | st=input()
print(int(st))
#Stay safe
#IndiaFightsCorona
#FightBack
#StayHome
#StaySafe |
s709223253 | p03844 | u089230684 | 1585459456 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | a,op,b = input().split("")
if(op=='+'):
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s946401080 | p03844 | u353919145 | 1585459389 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,op,b = input().strip()
if(op=='+'):
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s256325844 | p03844 | u440129511 | 1585272460 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | a,b=map(int,input().split())
print(a+b or a-b)
|
s565306719 | p03844 | u642418876 | 1585265327 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | A op B=map(str,input().split())
if op=="+":
print(int(A)+int(B))
else:
print(int(A)-int(B))
|
s380222155 | p03844 | u440129511 | 1585240861 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 48 | A=int(input())
B=int(input())
print(A+B or A-B) |
s449980730 | p03844 | u516566941 | 1584982172 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 417 | N = int(input())
A = list(map(int,input().split()))
C = [0]*N
a=0
def line(A,N):
for i in range(N):
C[A[i]] += 1
if C[0] == 1:
if N % 2==1:
return pow(2,(N-1)//2)
else:
return 0
for i in range(N):
if C[i] != 2 and C[i]>=1:
return 0
elif C[i]==0:
continue
return pow(2,(N-1)//2)
a=line(A,N)
print(a%(pow(10,9)+7))
|
s949611933 | p03844 | u516566941 | 1584910773 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 269 | N = int(input())
T = list(map(int,input().split()))
M = int(input())
grid = []
for i in range(M):
data = list(map(int,input().split()))
grid.append(data)
fsum = sum(T)
for i in range(M):
dsum = 0
dsum = fsum - T[i] + grid[i][1]
print(dsum)
|
s768611812 | p03844 | u346677493 | 1584894518 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 47 | A op B=map(int,raw_input.split())
print A op B |
s765714523 | p03844 | u634248565 | 1584751214 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a, x, b = input().split()
c = int(a)
d = int(b)
if x == ("+"):
print (c + d)
elif op == ("-"):
print (c - d) |
s124893434 | p03844 | u224993839 | 1584731614 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27756 | 168 | a=input()
for i in range(len(a)):
if a[i]=='+':
a1=int(a[:i])
a2=int(a[i+1:])
print(a1+a2)
elif a[i]=='-':
a1=int(a[:i])
a2=int(a[i+1:])
print(a1-a2)
|
s892462639 | p03844 | u016323272 | 1584451817 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 103 | #ABC050.A
A,B = map(int,input().split())
op = input()
if op == '+':
print(A+B)
else:
print(A-B) |
s337858823 | p03844 | u768559443 | 1584131531 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c=input().split()
if b=="+":
print(int(a)+int(c))
else b=="-":
print(int(a)-int(c))
|
s556804843 | p03844 | u163874353 | 1584103753 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | a, op, b = input().split()
if op = "+":
print(int(a) + int(b))
else:
print(int(a) - int(b)) |
s316932011 | p03844 | u841623074 | 1584038447 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 353 | N=int(input())
A=[int(x)for x in input().split()]
B=[]
if N%2==0:
B= sorted([2*i-1 for i in range(1,N//2+1)]*2)
if sorted(A)==B:
ans=(pow(2,N/2))%(10**9+7)
else:
ans=0
else:
B= [0]+sorted([2*i for i in range(1,N//2+1)]*2)
if sorted(A)==B:
ans=(pow(2,(N-1)/2))%(10**9+7)
else:
ans=0
print(int(ans)) |
s322007359 | p03844 | u288430479 | 1583986182 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 88 | a,b,c = input().split()
if b == "+":
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s466642738 | p03844 | u288430479 | 1583986168 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | a,b,c = input()
if b == "+":
print(int(a)+int(b))
else:
print(int(a)-int(b)) |
s908289015 | p03844 | u263824932 | 1583446588 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 658 | N=int(input())
A=input().split()
numbers=[int(a) for a in A]
numbers.sort()
kazu=N//2
b=0
n=N-1
list=[]
nlist=[]
if N==1:
if A==0:
print(1)
else:
print(0)
else:
if N % 2 == 0:
for c in range(kazu):
list.append(n - c * 2)
nlist = list + list
nlist.sort()
if numbers == nlist:
print((2 ** kazu)%(10**9+7))
else:
print(0)
else:
for c in range(kazu):
list.append(n - c * 2)
nlist = list + list + [0]
nlist.sort()
if numbers == nlist:
print((2 ** kazu)%(10**9+7))
else:
print(0)
|
s998089756 | p03844 | u697696097 | 1583303921 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 99 | a=input().split()
if a[1]=="+":
print(int(a[0])+int(a[1]))
else:
print(int(a[0])-int(a[1])) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.