problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02777
u217530935
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['\n\nS, T = input().split()\nA, B = map(int, input().split())\nU = input()\n\nprint(S)\nprint(U)\nif S == U:\n print(A-1, B)\nelse:\n print(A, B-1)\n', '\n\nS, T = input().split()\nA, B = map(int, input().split())\nU = input()\n\n\nif S == U:\n print(A-1, B)\nelse:\n print(A, B-1)\n']
['Wrong Answer', 'Accepted']
['s894136632', 's935510549']
[2940.0, 2940.0]
[17.0, 18.0]
[142, 125]
p02777
u218487926
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['l = {}\ns, t = input().split()\na, b = map(int, input().split())\nu = input()\nprint(a, b-1) if s==u else print(a-1, b)\n', 'l = {}\ns, t = input().split()\na, b = map(int, input().split())\nu = input()\nprint(a-1, b) if s==u else print(a, b-1)\n']
['Wrong Answer', 'Accepted']
['s951407955', 's500736278']
[2940.0, 2940.0]
[17.0, 17.0]
[116, 116]
p02777
u223555291
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b=input().split()\nc,d=map(int,input().split())\ne=int(input())\nif e==a:\n c-=1\nelse:\n d-=1\nprint(c,d)', 'a,b=input().split()\nc,d=map(int,input().split())\ne=input()\nif e==a:\n c-=1\nelse:\n d-=1\nprint(c,d)\n']
['Runtime Error', 'Accepted']
['s639530090', 's334950247']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 99]
p02777
u224554402
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["n = input()\n(s,t) = n.split()\nm = input()\n(a,b)=m.split()\nk = input()\nif k is s:\n a_1 = int(a) - 1\n print(str(a_1)+' '+ b)\nelse:\n b_1 = int(b) -1\n print(a +' '+str( b_1))\n\n", "n = input()\n(s,t) = n.split()\nm = input()\n(a,b)=m.split()\nk = input()\nif k == s:\n a_1 = int(a) - 1\n print(str(a_1)+' '+ b)\nelse:\n b_1 = int(b) -1\n print(a +' '+str( b_1))\n\n\n"]
['Wrong Answer', 'Accepted']
['s797685416', 's241275242']
[2940.0, 2940.0]
[17.0, 19.0]
[185, 185]
p02777
u227907942
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["N,*a = map(int,open(0).read().split())\na.sort()\nflag = True\nfor i in range(1,N):\n if a[i]==a[i-1]:\n print('NO')\n flag=False\n break\nif flag ==True:\n print('YES')", 'S,U = map(str,input().split())\nM,N = map(int,input().split())\na = str(input())\nif S == a:\n print(M-1,N)\nelse:\n print(M,N-1)']
['Runtime Error', 'Accepted']
['s641818336', 's013159737']
[9052.0, 9112.0]
[23.0, 30.0]
[171, 125]
p02777
u230900948
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['if __name__ == "__main__":\n N = int(input())\n A = list(map(int, input().split()))\nif len(set(A)) == N:\n print(\'YES\')\nelse:\n print(\'NO\')', 'if __name__ == "__main__":\n S, T = input().split()\n A, B = map(int, input().split())\n U = input()\n\nif c == a[0]:\n print(b[0]-1)\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint(A, B)', 'if __name__ == "__main__":\n S, T = input().split()\n A, B = map(int, input().split())\n U = input()\n\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint(A, B)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s131987055', 's529598562', 's129995988']
[2940.0, 3060.0, 3060.0]
[18.0, 17.0, 17.0]
[147, 188, 158]
p02777
u231252729
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a = int(input())\ns, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u=s a-=1\nif u=t b-=1\nprint(a b)', "a = int(input())\ns, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u==s:\n a-=1\nif u==t:\n b-=1\nprint(a+' '+b)", 'a = int(input())\ns, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u==s:\n a-=1\nif u==t:\n b-=1\nprint(a,b)', 's, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u==s:\n a-=1\nif u==t:\n b-=1\nprint(a,b)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s479330747', 's502174142', 's853428530', 's906234021']
[2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 17.0]
[129, 145, 141, 124]
p02777
u232011870
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s = input()\nn = len(s)\nprint('x'*n)", 's,t = input().split()\na,b = map(int, input().split())\nu = input()\nif s == u:\n a -= 1\nelse:\n b -= 1\nprint(a,b)']
['Wrong Answer', 'Accepted']
['s499008665', 's529121433']
[3064.0, 2940.0]
[17.0, 17.0]
[35, 115]
p02777
u236193715
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['D={s:x for s,x in zip(input().split(),list(map(int,input().split())))};D[input()]-=1;[print(D[s],end=" ")for s in D]', 'S=input().split();A=list(map(int,input().split()));A[input()==S[1]]-=1;print(A[0],A[1])']
['Wrong Answer', 'Accepted']
['s638237541', 's299065001']
[2940.0, 2940.0]
[17.0, 17.0]
[116, 87]
p02777
u237634011
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na, b = map(int, input().split())\nu = str(input())\n \nif u = s:\n print(a-1, b)\nelse:\n print(a, b-1)', 's, t = map(str, input().split())\na, b = map(int, input().split())\nu = str(input())\n\nif u = s:\n print(a-1, b)\nelse:\n print(a, b-1)\n', 's, t = input().split()\na, b = map(int, input().split())\nu = str(input())\n \nif u==s:\n print(a-1, b)\nelse:\n print(a, b-1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s207047747', 's210728062', 's498187611']
[8920.0, 8832.0, 9004.0]
[23.0, 19.0, 26.0]
[122, 132, 121]
p02777
u239342230
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T=input().split()\nA,B=map(int,input().split())\nU=input()\n\nd={S:A,T:B}\n\nd[U]-=1\n\nfor i in list(d.values()):\n print(i, end=" ")', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\n\nif U==S:\n A-=1\nelse:\n B-=1\nprint(A, B)']
['Wrong Answer', 'Accepted']
['s449030102', 's645054167']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 104]
p02777
u240292623
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s = input()\nm = ""\nfor i in s:\n m = m + i.replace(i, \'x\')\nprint(m)\n', "S = input()\nprint('x'* len(S))", "s, t = input().split() \na, b = input().split() \nu = input()\nint(a)\nint(b)\nif u == s:\n a = a-1\nelse:\n b = b-1\nprint(a+' '+b)", "s, t = input().split() \na, b = input().split() \nu = input()\n\n\nif u == s:\n a = str(int(a)-1)\nelse:\n b = str(int(b)-1)\n\nprint(a+' '+b)"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s120565032', 's434601545', 's600591528', 's471141711']
[2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[70, 30, 129, 138]
p02777
u241544828
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['A, B= input().split()\nnum = [int(x) for x in input().split()]\nC = input()\n\nif C == A:\n num[0]=num[0]-1\nelse:\n num[1]= num[1]-1\n \nprint(num[0]+" "+num[1])', 'S = input().split()\nnum = [int(x) for x in input().split()]\nA = input()\n \nif A == S[0]:\n num[0]=num[0]-1\nelse:\n num[1]= num[1]-1\n \nprint(str(num[0])+" "+str(num[1]))']
['Runtime Error', 'Accepted']
['s173701508', 's899283108']
[3060.0, 3060.0]
[17.0, 17.0]
[156, 168]
p02777
u243373163
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b=map(int,input().split())\ns,t,u=map(input().split())\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)', 's=input()\nt=input()\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)', 'p,q,r=map(int,input().split())\nif p>=q and p>r:\n print(q+r)\nif q>=r and q>p:\n print(p+r)\nif r>=p and r>q:\n print(q+p)\nif r==p and p==q:\n print(q+p)', 'p,q,r=map(int,input().split())\nif p>=q and p>r:\n print(q+r)\nif q>=r and q>p:\n print(p+r)\nif r>=p and r>q:\n print(q+p)\nif r==p and p==q:\n print(p+q)', 's=input()\nt=input()\nu=input()\na,b=map(int,input().split())\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)', 'a=int(input())\ns=input()\nb=int(input())\nt=input()\nu=input()\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)', 'p,q,r=map(int,input().split())\nif p>=q and p>r:\n print(q+r)\nif q>=r and q>p:\n print(p+r)\nif r>=p and r>q:\n print(q+p)\nif r==p and p==q:\n print(q+p)', 'p,q,r=map(int,input().split())\nif p>=q and p>r:\n print(q+r)\nif q>=r and q>p:\n print(p+r)\nif r>=p and r>q:\n print(q+p)\nif r==p and p==q:\n print(p+q)', 's=input()\nt=input()\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)', 's,t=map(str,input().split())\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(a-1,b)\nif u==t:\n print(a,b-1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s050006012', 's196207953', 's383473418', 's384452505', 's510141587', 's600102796', 's782560827', 's804010773', 's934884793', 's875817124']
[9056.0, 9112.0, 9080.0, 8724.0, 8972.0, 9060.0, 9212.0, 9112.0, 9096.0, 9156.0]
[27.0, 25.0, 23.0, 26.0, 25.0, 30.0, 25.0, 21.0, 23.0, 27.0]
[107, 110, 159, 160, 110, 111, 159, 160, 110, 119]
p02777
u244836567
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b=input().split()\nc,d=input().split()\ne=input()\nc=int(c)\nd=int(d)\nif a==e:\n print(c-1)\nelse:\n print(d-1)', 'a,b=input().split()\nc,d=input().split()\ne=input()\nc=int(c)\nd=int(d)\nif a==e:\n print(c-1,d)\nelse:\n print(c,d-1)']
['Wrong Answer', 'Accepted']
['s841505441', 's773399672']
[9172.0, 9100.0]
[28.0, 29.0]
[108, 112]
p02777
u246639932
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = map(input().split())\na, b = map(int, input().split())\nu = input()\nprint(a-1,b if s==u else a,b-1)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\nif s==u:\n print(a-1,b)\nelse:\n print(a,b-1)']
['Runtime Error', 'Accepted']
['s165631425', 's411253938']
[2940.0, 2940.0]
[17.0, 17.0]
[104, 116]
p02777
u249412218
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s,t=input().split()\na,b=map(int,iinput().split())\nu=input()\nif u==s:\n a=a-1\nif u==t:\n b=b-1\nprint(a+' '+b)", "s,t=input().split(' ')\na,b=map(int,input().split())\nu=input()\nif u==s:\n a=a-1\nif u==t:\n b=b-1\nprint(a+' '+b)", '\ns,t=input().split()\na,b=map(int,iinput().split())\nu=input()\nif u==s:\n a=a-1\nif u==t:\n b=b-1\nprint(a,b)', "s,t=input().split(' ')\na,b=map(int,input().split())\nu=input()\nif u==s:\n a=a-1\nif u==t:\n b=b-1\nprint(str(a)+' '+str(b))\n "]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s079194169', 's254003315', 's497255277', 's325920407']
[2940.0, 2940.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 18.0]
[108, 110, 105, 133]
p02777
u251780079
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = input().split()\na, b = map(int, input().split())\nu = input()\nif s == u:\n a -= 1\n else:\n b -= 1\n print(a,b)', 's,t = input().split()\na, b = map(int, input().split())\nu = input()\nif s == u:\n a -= 1\nelse:\n b -= 1\nprint(a,b)\n']
['Runtime Error', 'Accepted']
['s629363293', 's449506616']
[2940.0, 3064.0]
[18.0, 19.0]
[114, 113]
p02777
u256833330
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=input().split()\na,b=map(int(),input().split())\nu=input()\nprint(a-1,b if u==s else a,b-1)\n', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nprint(a-1,b) if u==s else print(a,b-1)\n']
['Runtime Error', 'Accepted']
['s246075620', 's583196361']
[2940.0, 2940.0]
[17.0, 18.0]
[93, 98]
p02777
u257084573
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = input()\n\nif S == U:\n A = A - 1\nelse:\n B = B - 1\n \nprint(A)\nprint(B)', 'S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = input()\n\nif S == U:\n A = A - 1\nelse:\n B = B - 1\nprint(str(A)+str(B))', 'S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = input()\n\nif S == U:\n A = A - 1 \nelse:\n B = B - 1 \n\nprint(str(A) + " " + str(B))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s394312645', 's743253103', 's976482395']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[164, 168, 155]
p02777
u259755734
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == t:\n a -= 1\nelse:\n b -= 1\n\nprint(a, b)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n a -= 1\nelse:\n b -= 1\n\nprint(a, b)']
['Wrong Answer', 'Accepted']
['s078650158', 's307763725']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 120]
p02777
u265118937
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = map(input().split())\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a-1, b, end="")\nelse:\n print(a, b-1, end="")', 's, t = map(input().split())\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a-1,end="")\n print(b)\nelse:\n print(a,end="")\n print(b-1)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a-1, b)\nelse:\n print(a, b-1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s276297402', 's985503067', 's821055160']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[142, 160, 121]
p02777
u268181283
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["S = input()\nl = len(S)\nprint('x'*l)", 'S,T = input().split()\ns,t = map(int,input().split())\nU = input()\n\nif U==S:\n s -= 1\nelse:\n t -= 1\n \nprint(s,t)']
['Wrong Answer', 'Accepted']
['s035189659', 's155617962']
[2940.0, 2940.0]
[17.0, 18.0]
[35, 112]
p02777
u273242084
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = input().split()\na,b= map(int,input().split())\nu = input()\nif u in s:\n print(a-1)\nif u in t:\n print(b-1)', 's,t = input().split()\na,b = map(int,input().split())\nu = input()\nif s == u:\n print(a-1,b)\nif t == u:\n print(a,b-1)']
['Wrong Answer', 'Accepted']
['s080256138', 's324653651']
[2940.0, 9000.0]
[17.0, 24.0]
[115, 120]
p02777
u280978334
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['def main():\n S,T = input().split()\n a,b = map(int,input().split())\n u = input()\n print(a-1,b if S == u else a,b-1)\n return\n\nif __name__ == "__main__":\n main()', 'def main():\n S,T = input().split()\n a,b = map(int,input().split())\n u = input()\n if S == u:\n print(a-1,b)\n else:\n print(a,b-1)\n return\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s090010922', 's531877238']
[2940.0, 2940.0]
[29.0, 17.0]
[176, 205]
p02777
u281745878
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['import copy\nN, K = map(int,input().split())\np = [int(i) for i in input().split()]\nP = []\nP_S = [0]\nans_list = []\ntemp = 0\n\nfor i in range(N):\n P.append((p[i] + 1)/2)\n temp = temp + P[i]\n P_S.append(temp)\nfor i in range(K,N+1):\n ans_list.append(P_S[i] - P_S[i - K])\n\nprint(max(ans_list))', 'S,T = input().split()\nA,B = map(int,input().split())\nU = input()\n\nif U == S:\n print(A-1,B)\nelif U == T:\n print(A,B-1)\nelse:\n print(A,B)']
['Runtime Error', 'Accepted']
['s354088817', 's510804466']
[3572.0, 3060.0]
[25.0, 17.0]
[299, 144]
p02777
u283751459
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b = input().split\nc,d = map(int,input().split())\ne = input()\n\nif a == e:\n print(c-1 d)\nelse:\n print(c d-1)', 'a,b = input().split\nc,d = map(int,input().split())\ne = input()\n\nif a == e:\n print("{} {}".format(c-1,d))\nelse:\n print("{} {}".format(c,d-1))', 'a,b = input().split()\nc,d = map(int,input().split())\ne = input()\n\nif a == e:\n print("{} {}".format(c-1,d))\nelse:\n print("{} {}".format(c,d-1))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s341029100', 's986326970', 's332461350']
[8964.0, 9048.0, 9064.0]
[26.0, 27.0, 24.0]
[110, 142, 145]
p02777
u283853418
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T= map(strinput().split())\nA=len(S)\nB=len(T)\nptint(A,{},B)\nU =input()\nif U==S:\n A-=S\nelif U==T:\n B-=1\nelse:\n pass', 'S,T= map(str,input().split())\nA,B=map(int,input().split())\nU =input()\nif U==S:\n A-=1\nelif U==T:\n B-=1\nelse:\n pass\nprint(A,B)']
['Runtime Error', 'Accepted']
['s977035037', 's820969890']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 127]
p02777
u284307352
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['#!/usr/bin/env python3\n\ndef main():\n S, T = input().split()\n A, B = map(int, input().split())\n U = input().split()\n\n if U == S:\n A -= 1\n else:\n B -= 1\n\n print(A, B)\n\n\nmain()\n', '#!/usr/bin/env python3\n\ndef main():\n S, T = input().split()\n A, B = map(int, input().split())\n U = input()\n\n if U == S:\n A -= 1\n else:\n B -= 1\n\n print(A, B)\n\n\nmain()\n']
['Wrong Answer', 'Accepted']
['s305000957', 's117961205']
[2940.0, 2940.0]
[17.0, 17.0]
[206, 198]
p02777
u288001809
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['str1, str2 = input().split()\ncnt1, cnt2 = list(map(int, input().split()))\ntar = input()\n\nif tar == str1:\n cnt1 -= 1\nelse\n cnt2 -= 1\n\nprint(str(cnt1) + " " + str(cnt2))', 'str1, str2 = input().split()\ncnt1, cnt2 = list(map(int, input().split()))\ntar = input()\n\nif tar == str1:\n cnt1 -= 1\nelse:\n cnt2 -= 1\n\nprint(str(cnt1) + " " + str(cnt2))']
['Runtime Error', 'Accepted']
['s509379279', 's379902567']
[2940.0, 3064.0]
[17.0, 19.0]
[169, 170]
p02777
u288430479
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b = input().split()\nc,d = map(int,input().split())\ne =input()\n\nIf a = e;\n\t\tprint(c-1,d)\n\t\t\nelse;\n\t\tprint(c,d-1)', 'a,b = input().split()\nc,d = map(int,input().split())\ne =input()\n \nif a == e:\n\t\tprint(c-1,d)\n\t\t\nelse:\n\t\tprint(c,d-1)']
['Runtime Error', 'Accepted']
['s633531548', 's786131162']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 115]
p02777
u288547705
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T=input().split()\nA,B=(int(x) for x in input().split())\nU = input()\n \nif S == U:\n A = A - 1\n print(A +" " + B)\n \nelse:\n B = B - 1\n print(A + " " + B)', 'S,T=input().split()\nA,B=(int(x) for x in input().split())\nU = input()\n\nif S == U:\n A = A - 1\n print(A B)\n \nelse:\n B = B - 1\n print(A B)', 'S,T=input().split()\nA,B=(int(x) for x in input().split())\nU = input()\n \nif S == U:\n A = A - 1\n print(A, B)\n \nelse:\n B = B - 1\n print(A, B)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s164836977', 's214095719', 's245766198']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[156, 140, 144]
p02777
u290187182
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['red blue\n5 5\nblue', 'if __name__ == \'__main__\':\n s = input()\n a = s.split(" ", )\n c, d = map(int, input().split())\n f = input()\n if f == a[0]:\n c = c-1\n else:\n d = d-1\n print(str(c)+" "+str(d))\n']
['Runtime Error', 'Accepted']
['s551118670', 's896818427']
[2940.0, 2940.0]
[17.0, 17.0]
[17, 209]
p02777
u291132512
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s = input()\nt = input()\nsa,tb = map(int,input())\nu = input()\nif u == s:\n sa -= 1\nelse:\n tb -= 1\nprint(sa,tb)\n\n', 's,t = input().split()\nsa,tb = map(int,input().split())\nu = input()\nif u == s:\n sa -= 1\nelse:\n tb -= 1\nprint(sa,tb)\n']
['Runtime Error', 'Accepted']
['s792892999', 's277519017']
[2940.0, 3064.0]
[17.0, 20.0]
[116, 121]
p02777
u294375415
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["\n\na, b, c = [0] * 3\nx = []\n\ndef format_input(filename = None):\n\tglobal a, b, c\n\tglobal x\n\tif filename == None:\n\t\ta, b, c = list(map(int, input().split()))\n\t\tx = [list(map(int, input().split())) for i in range(n)]\n\n\telif filename == '__random__'\n\t\tfrom random import randint as rng\n\t\ta = rng(1, 10**1)\n\t\tb = rng(1, 10**1)\n\t\tc = rng(1, 10**1)\n\t\tx = [[rng(1, 10**1), rng(1, 10**1)] for i in range(n)]\n\ndef get_answer(a, b, c, x):\n\tanswer = 0\n\treturn answer\n\nif __name__ == '__main__':\n\tformat_input('__random__')\n\n\tans = get_answer(a, b, c, x)\n\tprint(ans)\n", '\n\ns, t= [""] * 2\na, b = [0] * 2\nu = [""]\n\ndef format_input(filename = None):\n\tglobal s,t\n\tglobal a,b\n\tglobal u\n\tif filename == None:\n\t\ts, t = list(map(str, input().split()))\n\t\ta, b = list(map(int, input().split()))\n\t\tu = list(map(str, input().split())).pop()\n\ndef get_answer():\n\tanswer = [a, b]\n\tif u == s:\n\t\tanswer[0] -= 1\n\telse:\n\t\tanswer[1] -= 1\n\n\treturn answer\n\nif __name__ == \'__main__\':\n\tformat_input()\n\n\tans = get_answer()\n\tprint(ans[0], ans[1])\n']
['Runtime Error', 'Accepted']
['s709010883', 's353018379']
[2940.0, 3064.0]
[17.0, 17.0]
[553, 452]
p02777
u296989351
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(s - 1 , t)\nelse:\n print(s, t - 1)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a - 1 , b)\nelse:\n print(a, b - 1)']
['Runtime Error', 'Accepted']
['s564996464', 's070442638']
[2940.0, 2940.0]
[18.0, 18.0]
[126, 126]
p02777
u307516601
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = input().split()\na,b = list(map(int, input().split()))\nu = input()\n\nif u == s:\n print(a, b)\nelse:\n print(a, b-1)', 'import sys\nsys.setrecursionlimit(10**6)\nreadline = sys.stdin.readline\ns,t = [i.rstrip() for i in readline().split()]\na,b = [int(i) for i in readline().split()]\nu = readline()\n\nif u == s:\n print(a-1, b)\nelse:\n print(a, b-1)', 's,t = input().split()\na,b = list(map(int, input().split()))\nu = input()\n\nif u == s:\n print(a-1, b)\nelse:\n print(a, b-1)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s311126601', 's950906606', 's549580951']
[9152.0, 3060.0, 9056.0]
[27.0, 18.0, 27.0]
[123, 228, 125]
p02777
u308486530
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['nk = list(map(int, input().split()))\np = list(map(int, input().split()))\nn = nk[0]\nk = nk[1]\nmaxnum = 0\nfor i in range(n-k):\n if p[i+k] >= p[i]:\n maxnum = i+k\n\nans = (sum(p[maxnum-k+1:maxnum+1])+k)/2\nprint(ans)', 'alc = input().split()\nnums = list(map(int, input().split()))\nchoose = input()\n\nans0 = nums[0] - int(alc[0]==choose)\nans1 = nums[1] - int(alc[1]==choose)\nprint(ans0, ans1)']
['Runtime Error', 'Accepted']
['s517546351', 's854411794']
[3060.0, 3060.0]
[17.0, 17.0]
[220, 170]
p02777
u308684517
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na, b = map(int, input().split())\nc = input()\nif c == a: a -= 1\nelse: b -= 1\nprint(a, b)', 's, t = input().split()\na, b = map(int, input().split())\nc = input()\nif c == s: a -= 1\nelse: b -= 1\nprint(a, b)']
['Wrong Answer', 'Accepted']
['s295145944', 's527279523']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 110]
p02777
u311961196
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t,a,b,u=open(0).read().split()\nif s==u:\n print(int(a)-1)\nelif t==u:\n print(int(b)-1)', 's,t,a,b,u=open(0).read().split()\nif s==u:\n print(int(a)-1,b)\nelif t==u:\n print(a,int(b)-1)']
['Wrong Answer', 'Accepted']
['s431703312', 's007581797']
[9056.0, 9028.0]
[28.0, 24.0]
[92, 96]
p02777
u312158169
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = input().split()\na,b = map(int,input().split()\nu = input()\n \nif u == s:\n\tprint(a-1,b)\nelif u == t:\n print(a,b-1)\nelse:\n print(a,b)', 's,t = input().split()\na,b = map(int,input().split())\nu = input()\n \nif u == s:\n\tprint(a-1,b)\nelif u == t:\n print(a,b-1)\nelse:\n print(a,b)\n']
['Runtime Error', 'Accepted']
['s546326810', 's663105323']
[2940.0, 2940.0]
[17.0, 17.0]
[150, 152]
p02777
u312748806
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['strings = input().split()\nnums = list(map(int, input().split(" ")))\ndelete = input()\nfor i in range(2):\n nums[i] = (nums[i] -1) if strings[i] == delete else nums[i]\nprint(nums)', 'strings = input().split()\nnums = list(map(int, input().split(" ")))\ndelete = input()\nfor i in range(2):\n nums[i] = (nums[i] -1) if strings[i] == delete else nums[i]\nprint(*nums)']
['Wrong Answer', 'Accepted']
['s470287736', 's377024546']
[3060.0, 2940.0]
[17.0, 18.0]
[181, 182]
p02777
u314397652
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['print(input())', 's, t = input().split(" ")\na, b = (int(x) for x in input().split(" "))\nu = input()\n \nif s==u:\n print(s-1,t)\nelse:\n print(s,t-1) ', 's = input()\nt = input()\na = int(input())\nb = int(input())\nu = input()\n\nif s==u:\n print(s-1,t)\nelse:\n print(s,t-1) ', 'print(input(),input())', 's = input()\nt = input()\na = int(input())\nb = int(input())\nu = input()\n\nif u==s:\n print(s-1, t)\nelse:\n print(s, t-1)', 's, t = input().split(" ")\na, b = (int(x) for x in input().split(" "))\nu = input()\n \nif s==u:\n print(a-1, b)\nelse:\n print(a, b-1) ']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s238638556', 's426901093', 's471328518', 's669252760', 's739173771', 's503669025']
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0, 18.0, 17.0, 17.0]
[14, 130, 117, 22, 117, 132]
p02777
u315600877
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif S==U:\n print(A-1 B)\nelse:\n print(A B-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif S==U:\n print(str(A-1)+" "+str(B))\nelse:\n print(str(A)+" "+str(B-1))']
['Runtime Error', 'Accepted']
['s766213476', 's519978391']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 131]
p02777
u316603606
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T = input (),split ()\nA,B = map (int, input ().split ())\nU = input ()\nif U == S:\n print (A-1,B)\nelse:\n print (A,B-1)', 'S,T = input (),split ()\nA,B = map (int, input (),split ())\nU = input ()\nif U == S:\n print (A-1,B)\nelse:\n print (A,B-1)', 'S,T = input ().split ()\nA,B = map (int, input ().split ())\nU = input ()\nif U == S:\n print (A-1,B)\nelse:\n print (A,B-1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s471046451', 's628408067', 's857225988']
[9036.0, 9104.0, 9024.0]
[26.0, 25.0, 29.0]
[120, 120, 120]
p02777
u320763652
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s,t =input().split()\na,b = map(int, input().split())\nu = input()\n\n\na = 123\nb = 'abc'\n\nprint(f'{a} and {b}')\n# print(f'{s} {t}')\n\n\n# a-=1\n# print(f'{a} {b}')\n# else:\n# b-=1\n# print(f'{a} {b}')\n", "s,t =input().split()\na,b = map(int, input().split())\nu = input()\n\nprint(f'{a} {b}')\n\n\n# a-=1\n# print(f'{a} {b}')\n# else:\n# b-=1\n# print(f'{a} {b}')\n", "s,t =input().split()\na,b = map(int, input().split())\nu = input()\n\nprint(f'{s} {t}')\n\n\n# a-=1\n# print(f'{a} {b}')\n# else:\n# b-=1\n# print(f'{a} {b}')\n", 's,t =input().split()\na,b = map(int, input().split())\nu = input()\n\n\nif u == s:\n print(a-1, b)\nelif u == t:\n print(a, b-1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s349822776', 's465306423', 's699841753', 's681596108']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0]
[220, 176, 176, 126]
p02777
u325183470
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['\n\n\ncolor = input.split()\n\nnum = input.split()\n\nstock[color[0]] = num[0]\nstock[color[1]] = num[1]\n\nu = input.split()\n\nstock[u] = stock[u] - 1\n\nprint({col1} {col2}).format(col1=stock[color[0]],col2=stock[color[1]])', "color = input().split()\n \nnum = input().split()\n\nstock = {}\nstock[color[0]] = num[0]\nstock[color[1]] = num[1]\n \nu = input().split()\n \nstock[u[0]] = int(stock[u[0]]) - 1\n \nprint('{col1} {col2}'.format(col1=stock[color[0]],col2=stock[color[1]]))"]
['Runtime Error', 'Accepted']
['s403885198', 's855606102']
[2940.0, 3064.0]
[17.0, 17.0]
[212, 243]
p02777
u328131364
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na,b = map(int,input().split())\nu = input().split()\n\nif s == u:\n\tprint(a-1)\n\nelse:\n\tprint(b-1)\n', 's, t = input().split()\na,b = map(int,input().split())\nu = input()\n\nif s == u:\n\tprint(a-1)\n\nelse:\n\tprint(b-1)', 's, t = input().split()\na,b = map(int,input().split())\nu = input()\n\nif s == u:\n\tprint(a-1, b)\n\nelse:\n\tprint(a, b-1)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s290134875', 's305081461', 's136160286']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[117, 108, 115]
p02777
u331233176
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['N,K=map(int, input().split())\np=list(map(int, input().split()))\nkitai=[0]*N\nkitaiwa=[0]*(N-K+1)\nif N=K:\n print(sum(kitai))\nelif K==1:\n print(max(kitai))\nelse:\n for i in range(N):\n kitai[i]=(p[i]+1)/2\n for i in range(N-K+1):\n for j in range(K):\n kitaiwa[i]+=kitai[i+j]\n print(max(kitaiwa))', 'S,T=map(str, input().split())\nA,B=map(int, input().split())\nU=input()\n\nif U==S:\n print(A-1,B)\nelse:\n print(A,B-1)']
['Runtime Error', 'Accepted']
['s255884535', 's747596633']
[2940.0, 2940.0]
[17.0, 17.0]
[328, 119]
p02777
u331997680
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S:\n print(A-1, B):\nelse:\n print(A, B-1)', 'S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S:\n print(A-1, B)\nelse:\n print(A, B-1)\n']
['Runtime Error', 'Accepted']
['s940404683', 's703022517']
[2940.0, 2940.0]
[18.0, 17.0]
[117, 117]
p02777
u334365640
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
[' b = input().split()\n a = list(map(int, input().split()))\n c = {b[i]:a[i] for i in range(len(b))}\n print(c[input()] - 1)', 'b = input().split()\na = map(int, input().split())\nc = {b[i]:a[i] for i in range(len(b))}\nprint(c[input()] - 1)\n', 'b = input().split()\na = list(map(int, input().split()))\nc = {b[i]: a[i] for i in range(len(b))}\nd = input()\nfor i, j in c.items():\n print(j - 1 if i == d else j, end=" ")', 's, t = input().split()\na, b = map(int, input().split())\ni = input()\nif t == i:\n print(a, b-1)\nelse:\n print(a-1, b)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s496424145', 's549460656', 's956261934', 's281301010']
[2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[132, 111, 173, 116]
p02777
u334928930
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T=input().split(" ")\nA,B=map(int,input().split(" "))\nU=input()\nif U==S:\n A=A-1\nelse:\n B=B-1\nprint(" ".join([A,B]))', 'S,T=input().split(" ")\nA,B=map(int,input().split(" "))\nU=input()\nif U==S:\n A=A-1\nelse:\n B=B-1\nprint(" ".join([str(A),str(B)]))']
['Runtime Error', 'Accepted']
['s378988372', 's677300972']
[2940.0, 3060.0]
[17.0, 19.0]
[122, 132]
p02777
u344888046
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S = list(map(int, input().split()))\nA = list(map(int, input().split()))\nU = int(input())\n\nind = S.index(U)\n\nA[ind] -= 1\n\nprint("".join(A))\n', 'S = list(map(str, input().split()))\nA = list(map(int, input().split()))\nU = int(input())\n\nind = S.index(U)\n\nA[ind] -= 1\n\nprint("".join(A))\n', 'S = list(map(str, input().split()))\nA = list(map(int, input().split()))\nU = input()\n\nind = S.index(U)\n\nA[ind] -= 1\n\nprint(" ".join(list(map(str, A))))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s267411178', 's433629607', 's788033987']
[9020.0, 9164.0, 9168.0]
[20.0, 20.0, 24.0]
[139, 139, 151]
p02777
u345132740
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['N=input()\nA=input().split()\nif(A in N):\n print("YES")\nelse:\n print("NO")', "S,T=input().split()\nA,B=input().split()\nU=input()\nif(str(S)==str(U)):\n A=int(A)-1\nif(str(T)==str(U)):\n B=int(B)-1\nprint(str(A)+' '+str(B))"]
['Runtime Error', 'Accepted']
['s848996008', 's813345469']
[2940.0, 3060.0]
[17.0, 17.0]
[74, 140]
p02777
u346424924
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['n, k = map(int, input().split())\np = list(map(int, input().split()))\n\nmaxexp = 0\nfor i in range(n-k+1):\n kdice = [float((1+p[i+j])/2) for j in range(k)]\n sumkdice = sum(kdice)\n if sumkdice > maxexp:\n maxexp = sumkdice\n\nprint(maxexp)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a - 1, b)\nelse:\n print(a, b - 1)']
['Runtime Error', 'Accepted']
['s350867540', 's320328214']
[3060.0, 2940.0]
[17.0, 17.0]
[248, 125]
p02777
u347452770
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = intput().split("")\na, b = map(int, input().split(""))\nu = input()\n\nif u == t :\n num = b - 1\n print(a, num)\nelse:\n num = a - 1\n print(num, b)', 'str = input().split()\ns = str[0]\nt = str[1]\na, b = map(int, input().split())\nu = input()\n \nif u == t :\n num = b - 1\n print(a, num)\nelse:\n num = a - 1\n print(num, b)']
['Runtime Error', 'Accepted']
['s148415810', 's162123800']
[2940.0, 3060.0]
[17.0, 17.0]
[151, 168]
p02777
u350093546
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s=input()\nprint('x'*len(s))\n", 's,t=(str,input().split())\na,b=(int,input().split())\nu=str(input())\n\nif s==u:\n print (a-1,b)\nelif t==u:\n print(a,b-1)\n', "s=input()\nprint(('x')*len(s))\n", 's,t=input().split()\na,b=(int,input().split())\nu=input()\n\nif s==u:\n print (a-1,b)\nelif t==u:\n print(a,b-1)\n', 's,t=(str,input().split())\na,b=(int,input().split())\nu=str(input())\n\nif s==u:\n print (a-1,b)\nif t==u:\n print(a,b-1)', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\n\nif s==u:\n print (a-1,b)\nelif t==u:\n print(a,b-1)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s168006177', 's250311452', 's655540206', 's743240420', 's928072754', 's015944661']
[3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[28, 119, 30, 108, 116, 111]
p02777
u350578302
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["N = int(input())\nA = input().split()\nflag = 1\n\nfor j in range(N):\n\tfor i in range(N):\n\t\tif i+j+1<N:\n\t\t\tif A[j] == A[i+j+1]:\n\t\t\t\tflag = 0\n\t\t\t\tbreak\nif flag==0:\n\tprint('NO')\nelif flag==1:\n\tprint('YES')\n\n", 's,t = input().split()\na,b = map(int,input().split())\n#print(s,t)\n#print(a,b)\nu = input()\n#print(u)\n\nif s == u :\n\ta = a - 1\nelif t == u:\n\tb = b - 1\n\nprint(a, b)\n']
['Runtime Error', 'Accepted']
['s085001180', 's207779748']
[2940.0, 2940.0]
[18.0, 17.0]
[201, 160]
p02777
u351480677
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = map(input().split())\na,b = map(int,input().spli())\nu = input()\nif u==s:\n print(a-1,b)\nelse:\n print(a,b-1)', 's = input().split()\na,b = map(int,input().split())\nu = input()\nif u==s[0]:\n print(a-1,b)\nelse:\n print(a,b-1)']
['Runtime Error', 'Accepted']
['s953818608', 's735989955']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 114]
p02777
u354623416
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["S = input()\nprint('x' * len(S))\n", 'C1,C2= map(str,input().split())\nCN1,CN2= map(int,input().split())\nColorTaken = str(input())\nif ColorTaken == C1 :\n print ( CN1 - 1 , CN2 )\nelse :\n print ( CN1 , CN2 - 1 )\n']
['Wrong Answer', 'Accepted']
['s139886615', 's938733791']
[2940.0, 2940.0]
[18.0, 18.0]
[32, 178]
p02777
u357751375
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s,t = input().split()\na,b = map(int,input().split())\nu = input()\n\nif s == u:\n a = a - 1\nelse:\n b = b - 1\n\nprint(a + ' ' + b)", "s,t = input().split()\na,b = map(int,input().split())\nu = input()\n\nif s == u:\n a = a - 1\nelse:\n b = b - 1\n\nprint(str(a) + ' ' + str(b))"]
['Runtime Error', 'Accepted']
['s355869967', 's883023058']
[2940.0, 2940.0]
[17.0, 18.0]
[130, 140]
p02777
u357858848
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = input().split()\nA, B = input().split()\nU = input()\n\nprint(f"{int(A) - 1 if S == U else 0} {int(B) - 1 if T == U else 0}")\n', 'S, T = input().split()\nA, B = input().split()\nU = input()\n\nprint("{} {}".format(int(A) - 1 if S == U else 0, int(B) - 1 if T == U else 0))\n', 'S, T = input().split()\nA, B = input().split()\nU = input()\n\nprint("{} {}".format(int(A) - (1 if S == U else 0), int(B) - (1 if T == U else 0)))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s276317851', 's461894324', 's246670025']
[2940.0, 2940.0, 2940.0]
[17.0, 20.0, 17.0]
[129, 139, 143]
p02777
u361841553
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['def main():\n s = input().split()\n n, m = list(map(int, input().split()))\n d = input()\n #print(s)\n if s[0] == d:\n print(n - 1, m)\n else:\n print(n, m - 1)\n\n\nif __name__', 'def main():\n s = input().split()\n n, m = list(map(int, input().split()))\n d = input()\n #print(s)\n if s[0] == d:\n print(n - 1, m)\n else:\n print(n, m - 1)\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s429191357', 's718227311']
[2940.0, 2940.0]
[17.0, 17.0]
[198, 225]
p02777
u362560965
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t = input().split()\na,b = map(int, input().split())\nu = input()\n\nif u == s:\n a+=1\nelse:\n b+=1\n\nprint(a,b)', 's,t = input().split()\na,b = map(int, input().split())\nu = input()\n\nif u == s:\n a-=1\nelse:\n b-=1\n\nprint(a,b)']
['Wrong Answer', 'Accepted']
['s880383701', 's982205020']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 113]
p02777
u364651911
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['n = int(input())\ntmp = input().split()\nlength = len(tmp)\nlength2 = len(list(set(tmp)))\nif length == length2 :\n print("YES")\nelse:\n print("NO")', 'st = input().split()\nab = input().split()\nu = input()\nif u == st[0]:\n print(int(ab[0])-1,int(ab[1]))\nelse:\n print(int(ab[0]),int(ab[1])-1)']
['Runtime Error', 'Accepted']
['s965879142', 's188896700']
[2940.0, 3060.0]
[18.0, 18.0]
[144, 138]
p02777
u365156087
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["S = input()\nprint('x'*len(S))", 'a,b = input().split()\nn,m = map(int, input().split())\ns = input()\nif a == s:\n print(n-1,m)\nelse:\n print(n,m-1)']
['Wrong Answer', 'Accepted']
['s310006798', 's511432167']
[9000.0, 9164.0]
[27.0, 29.0]
[29, 112]
p02777
u366886346
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=map(input().split())\na,b=map(input().split())\nu=input()\nif s==u:\n a-=1\nelse:\n b-=1\nprint(a+b)\n', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nif s==u:\n a-=1\nelse:\n b-=1\nprint(a+b)\n', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nif s==u:\n a-=1\nelse:\n b-=1\nprint(a,b)\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s032127570', 's152433997', 's115763829']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 19.0]
[104, 103, 103]
p02777
u369133448
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=input().split()', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nans=[]\nif u==s:\n ans.append(str(a-1))\n ans.append(str(b))\nelse:\n ans.append(str(a))\n ans.append(str(b-1))\nprint(" ".join(ans))']
['Wrong Answer', 'Accepted']
['s048788528', 's395477559']
[2940.0, 3060.0]
[17.0, 18.0]
[19, 189]
p02777
u370721525
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input().split()\na, b = int(input().split())\nu = input()\n\nif s == u:\n a = a - 1\nelse:\n b = b - 1\n \nprint("{} {}".format(a, b))', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n \nif s == u:\n a = a - 1\nelse:\n b = b - 1\n \nprint("{} {}".format(a, b))']
['Runtime Error', 'Accepted']
['s112566223', 's153785307']
[2940.0, 2940.0]
[17.0, 17.0]
[136, 142]
p02777
u372058452
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u == s:\n a -= 1\n else:\n b -= 1\n print(a, b)', 's, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nif u == s:\n a -= 1\nelse:\n b -= 1\nprint(a, b)']
['Runtime Error', 'Accepted']
['s356777564', 's314606935']
[3188.0, 3060.0]
[18.0, 17.0]
[126, 124]
p02777
u373958718
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=map(int,input().split())\na,b=map(int,input().split())\nif s==input(): a-=1\nelse: b-=1\nprint(a,b)', 's,t=input().split();a,b=map(int,input().split());u=input()\nif s==u:a-=1\nelse:b-=1\nprint(a,b)']
['Runtime Error', 'Accepted']
['s147958183', 's996811732']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 92]
p02777
u374784428
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S = input(), T = input()\nA,B = map(int,input().split())\t\nU = input()\n\nif S == U:\n A -= 1\n print(A,B)\nelse:\n B -= 1\n print(A,B)', 'li = input().split()\nA,B = map(int,input().split())\t\nU = input()\n\nif li[1] == U:\n B -= 1\n print(A,B)\nelse:\n A -= 1\n print(A,B)']
['Runtime Error', 'Accepted']
['s114044728', 's280484113']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 138]
p02777
u374802266
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b=input().split()\nc,d=map(int,input().split())\nprint(c-1 if input()==a else d-1)', 'a,b=input().split()\nc,d=map(int,input().split())\nprint(c-1,d if input()==a else c,d-1)\n', 'a,b=input().split()\nc,d=map(int,input().split())\nif input()==a:\n print(c-1,d)\nelse:\n print(c,d-1)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s717443490', 's766022772', 's855164709']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[82, 87, 104]
p02777
u375193358
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(str(dic[key])+' ',end='')\n", "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(str(dic[key])+' ',end='')\n", "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(dic[key],end='')\n print(' ',end='')\n", "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(dic[key],end='')\n print(' ',end='')\n", "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(str(dic[key])+' ',end='')", "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nfor key in dic.keys():\n print(str(dic[key])+' ',end='')\n", 'S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n\ndic = {}\ndic[S] = A\ndic[T] = B\n\ndic[U] -= 1\n\nprint(dic[S],dic[T])\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s213561016', 's339823731', 's486653062', 's702802231', 's748959061', 's947795134', 's382104901']
[3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 19.0, 17.0, 18.0, 17.0]
[172, 172, 185, 185, 171, 172, 134]
p02777
u375616706
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T = map(str,input().split())\nX,Y = map(int,input().split())\nZ = input()\nif S==Z or T==Z:\n print(X+Y-1)\nelse:\n print(X+Y)\n', 'S,T = map(input().split())\nX,Y = map(int,input().split())\nZ = input()\nif S==Z or T==Z:\n print(X+Y-1)\nelse:\n print(X+Y)\n', 'S,T = map(str,input().split())\nX,Y = map(int,input().split())\nZ = input()\nif S==Z:\n print(X-1,Y)\nelif T==Z:\n print(X,Y-1)\nelse:\n print(X,Y)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s735148311', 's836582829', 's620438523']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[129, 125, 147]
p02777
u378782369
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['_S, _T = input().split()\nA, B = list(map(lambda x:int(x), input().split()))\nU = input()\n\n\nif U == A:\n is_type_A = True\nelse:\n is_type_A = False\n\nif is_type_A:\n print(A - 1, B)\nelse:\n print(A, B-1)', '_S, _T = input().split()\nA, B = list(map(lambda x:int(x)), input().split())\nU = input()\n\n\nif U == A:\n is_type_A = True\nelse:\n is_type_A = False\n\nif is_type_A:\n print(A - 1, B)\nelse:\n print(A, B-1)', 'S, T = input().split()\nA, B = input().split()\nU = input().split()\nS = str(S)\nT = str(T)\nA = int(A)\nB = int(B)\nU = str(U)\n\n\nif U == S:\n print(A-1,B)\nelse:\n print(A,B-1)', '_S, _T = input().split()\nA, B = list(map(lambda x:int(x), input().split()))\nU = input()\n\n\nif U == _S:\n is_type_A = True\nelse:\n is_type_A = False\n\nif is_type_A:\n print(A - 1, B)\nelse:\n print(A, B-1)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s135024986', 's705257770', 's864068644', 's804863388']
[3060.0, 3060.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[208, 208, 173, 209]
p02777
u379319399
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['N = int(input())\nA = input().split()\nfor i in A:\n A = [j for j in A if j != i]\n if len(A) == N - 1:\n N -= 1\n continue\n else:\n print("NO")\n break\nif N == 0:\n print("YES")\n', "S, T = input().split()\nA, B = map(int,input().split())\nU = input()\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint(str(A)+' '+str(B))\n"]
['Runtime Error', 'Accepted']
['s967012430', 's179350982']
[2940.0, 2940.0]
[17.0, 17.0]
[210, 131]
p02777
u382639013
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['import numpy\n\nS, T = map(str, input().split())\nAB = list(map(int, input().split()))\nU = input()\n\nif U == S:\n tmp = numpy.array([1,0])\nelse:\n tmp = numpy.array([0,1])\nprint(numpy.array(AB-tmp))', 'import numpy\n\nS, T = map(str, input().split())\nAB = list(map(int, input().split()))\nU = input()\n\nif U == S:\n tmp = numpy.array([1,0])\nelse:\n tmp = numpy.array([0,1])\nprint(numpy.array(AB-tmp)[0], numpy.array(AB-tmp)[1])']
['Wrong Answer', 'Accepted']
['s467040665', 's535684279']
[20724.0, 12488.0]
[273.0, 149.0]
[198, 225]
p02777
u383450070
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=map(str,input().split())\na,b=map(int,input().split())\nu=str(input())\nprint(a-1,b if u==s else a,b-1)', 's,t=map(str,input().split())\na,b=map(int,input().split())\nu=str(input())\nprint((a-1),b) if u==s else print(a,(b-1))']
['Wrong Answer', 'Accepted']
['s379229123', 's236205212']
[2940.0, 2940.0]
[19.0, 17.0]
[104, 115]
p02777
u386944085
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["import re\ni = input()\nprint(re.sub('[abcdefghijklmnopqrstuvwyz]', 'x',i))", "i = input()\nprint(re.sub'[abcdefghijklmnopqrstuvwyz]', 'x',i)", 'i = input().split()\nj = list(map(int, input().split()))\nk = input()\nif k==i[0]:\n j[0]=j[0]-1\nelse:\n j[1]=j[1]-1\nprint(j[0], j[1])']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s224513877', 's776317796', 's954967256']
[3188.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[73, 61, 135]
p02777
u387109968
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["\ns = input()\nt = input()\n\na = int(input())\nb = int(input())\n\nu = input()\nif u == s:\n a -= 1\nelif u == t:\n b -= 1\nprint(str(a) + ' ' + str(b))", 's = input()\nt = input()\n\na = int(input())\nb = int(input())\n\nu = input()\nif u == s:\n a -= 1\nelif u == t:\n b -= 1\nprint(a +" " + b)', "color = input().split()\n\nnum = input().split()\na = int(num[0])\nb = int(num[1])\n\n\nu = input()\nif u == color[0]:\n a -= 1\nelif u == color[1]:\n b -= 1\nprint(str(a) + ' ' + str(b))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s221808129', 's224362266', 's275933167']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[147, 135, 181]
p02777
u388297793
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s,t=input().split()\na,b=map(int.input().split())\nu=input()\nprint(a-1,b) if s==u else print(a,b-1)', 's,t=input().split()\na,b=map(int.input().split())\nu=input()\nprint(a-1,b) if s==i else print(a,b-1)', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(a-1,b)\nelse:\n print(a,b-1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s024840864', 's755991019', 's196728021']
[9020.0, 9080.0, 9088.0]
[26.0, 22.0, 27.0]
[97, 97, 107]
p02777
u394352233
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = input().split()\nlis = list(input().split())\nN1 = int(lis[0])\nN2 = int(lis[1])\nZ = input()\nprint(S,T,lis,Z,N1,N2)\n\nif Z == S:\n print(N1-1,N2)\nelif Z == T:\n print(N1,N2-1)\nelse:\n print(N1,N2)', 'S, T = input().split()\nlis = list(input().split())\nN1 = int(lis[0])\nN2 = int(lis[1])\nZ = input()\n#print(S,T,lis,Z,N1,N2)\n\nif Z == S:\n print(N1-1,N2)\nelif Z == T:\n print(N1,N2-1)\nelse:\n print(N1,N2)']
['Wrong Answer', 'Accepted']
['s519696110', 's233933778']
[3064.0, 3064.0]
[17.0, 18.0]
[205, 206]
p02777
u396210538
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['from sys import stdin\n\nS,T = stdin.readline().rstrip().split()\nA,B = [int(x) for x in stdin.readline().rstrip().split()]\nU = stdin.readline().rstrip().split()\n\nif S==U:\n\tprint(str(A-1)+" "+str(B))\nelse :\n\tprint(str(A)+" "+str(B-1))', 'from sys import stdin\n\nS,T = stdin.readline().rstrip().split()\nA,B = [int(x) for x in stdin.readline().rstrip().split()]\nU = stdin.readline().rstrip().split()\n\nif S==U:\n\tprint(str(A-1)+" "+str(B))\nelse :\n\tprint(str(A)+" "+str(B-1))', 'from sys import stdin\n\nS,T = stdin.readline().rstrip().split()\nA,B = [int(x) for x in stdin.readline().rstrip().split()]\nU = stdin.readline().rstrip().split()\n\nif S==U[0]:\n\tprint(str(A-1)+" "+str(B))\nelse :\n\tprint(str(A)+" "+str(B-1))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s789175611', 's897372307', 's503716583']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[231, 231, 234]
p02777
u398175819
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['N,K = map(int,input().split())\nPP = list(map(int,input().split()))\n\n\nmind = -1\nmmax = -1\n\nsums = []\ncsum = 0\n\nfor i in range(N):\n p = PP[i]\n csum += (p+1)/2\n sums.append(csum)\n if i < K:\n if mmax < csum:\n mind = i\n mmax = csum\n else:\n ksum = csum - sums[(i-K)]\n if mmax < ksum:\n mind = i\n mmax = ksum\n \nprint(ksum)\ntime3 = datetime.now()\n\n \n\n\n', 'S,T = input().split()\nA,B = map(int,input().split())\nU = input()\nif U ==S:\n print(A-1,B)\nelse:\n print(A,B-1)']
['Runtime Error', 'Accepted']
['s982331505', 's559754632']
[3064.0, 2940.0]
[17.0, 17.0]
[440, 114]
p02777
u401452016
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['#ABC154A\nimport sys\nfrom collections import OrderedDict\nd = OrderedDict()\ns,t = sys.stdin.readline().split()\nn1, n2 = map(int, sys.stdin.readline().split())\nd[s] = n1\nd[t] = n2\n\nd[sys.stdin.readline()] -=1\n\nprint(*d.values())', '#ABC154A\nimport sys\nfrom collections import OrderedDict\nd = OrderedDict()\ns,t = sys.stdin.readline().split()\nn1, n2 = map(int, sys.stdin.readline().split())\nd[s] = n1\nd[t] = n2\n\nd[sys.stdin.readline().rstrip()] -=1\n\nprint(*d.values())\n']
['Runtime Error', 'Accepted']
['s279891713', 's800038981']
[3316.0, 3316.0]
[20.0, 23.0]
[225, 235]
p02777
u405733072
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['def resolve():\n s,t = input().split()\n a,b = map(int,input().split())\n u = input()\n print(a-(s==u),b-(t==u))\nreoslve()', 'def resolve():\n s,t = input().split()\n a,b = map(int,input().split())\n u = input()\n print(a-(s==u),b-(t==u))\nresolve()']
['Runtime Error', 'Accepted']
['s787848614', 's294058052']
[8932.0, 9088.0]
[29.0, 28.0]
[130, 130]
p02777
u406405116
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['s, t = input()\na, b = input().split(" ")\nu = input()\na = int(a)\nb = int(b)\nu = int(u)\n\nif u == s:\n print(a - 1, b)\nelse:\n print(a, b-1)', 's, t = input().split()\na, b = input().split(" ")\nu = input()\na = int(a)\nb = int(b)\n\n \nif u == s:\n print(a - 1, b)\nelse:\n print(a, b-1)']
['Runtime Error', 'Accepted']
['s327988920', 's541515592']
[3060.0, 3060.0]
[17.0, 17.0]
[137, 136]
p02777
u411858517
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = map(int, input().split())\na, b = map(int, input().split())\nu = input()\n\nif S == u:\n print(a-1, b)\nelse:\n print(a, b-1)', 'S, T = map(str, input().split())\na, b = map(int, input().split())\nu = input()\n\nif S == u:\n print(a-1, b)\nelse:\n print(a, b-1)\n']
['Runtime Error', 'Accepted']
['s136167003', 's932703865']
[2940.0, 2940.0]
[18.0, 17.0]
[127, 128]
p02777
u413202297
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['n, m = map(str, input().split())\na, b = map(int, input().split())\nu = str(input())\n\nif n==u:\n a=a-1\n \nif m==u:\n b=b-1\n\nprint(n,m)\nprint(a,b)\nprint(u)', 'n, m = map(str, input().split())\na, b = map(int, input().split())\nu = str(input())\n\nif n==u:\n a=a-1\n \nif m==u:\n b=b-1\n\nprint(a ,b)']
['Wrong Answer', 'Accepted']
['s569091718', 's041994565']
[9124.0, 9116.0]
[26.0, 27.0]
[152, 133]
p02777
u414615201
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S = str( input() )\nT = str( input() )\nA = int( input() )\nB = int( input() )\nU = str( input() )\n\nif( S==U ):\n A-=1\nif( T==U ):\n B-=1\n\nprint( str(A)+" "+str(B) )', 'S, T = input().split()\nA, B = map( int, input().split() )\nU = input()\n\nif( S==U ):\n A-=1\nif( T==U ):\n B-=1\n\nprint( str(A)+" "+str(B) )']
['Runtime Error', 'Accepted']
['s426124368', 's262789883']
[3060.0, 2940.0]
[17.0, 18.0]
[165, 143]
p02777
u415875614
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["s = input.split()\na, b = map(int, input.split())\nu = input()\n\nif(u in s[0]):\n print(str(a - 1) + ' ' + str(b))\nelif(u in s[1]):\n print(str(a) + ' ' + str(b - 1))\nelse:\n print(str(a) + ' ' + str(b))\n", "from sys import stdin\n\ns, t = stdin.readline().rstrip().split()\na, b = [int(x) for x in stdin.readline().rstrip().split()]\nu = input()\n\nif (u in s):\n print(str(a - 1) + ' ' + str(b))\nelif (u in t):\n print(str(a) + ' ' + str(b - 1))\nelse:\n print(str(a) + ' ' + str(b))\n"]
['Runtime Error', 'Accepted']
['s958508783', 's695187814']
[2940.0, 3060.0]
[18.0, 18.0]
[207, 277]
p02777
u417365712
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = input().split()\na, b = map(int, input().split())\nU = input().strip()\nprint(a - S == U, b - S == T)', 'S, T = input().split()\na, b = map(int, input().split())\nU = input().strip()\nprint(a - (S == U), b - (T == U))']
['Runtime Error', 'Accepted']
['s248303259', 's264836457']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 109]
p02777
u419877586
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S:\n print(B)\nelse:\n print(A)', 'S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S:\n print(A-1, B)\nelse:\n print(A, B-1)']
['Wrong Answer', 'Accepted']
['s492521729', 's219175229']
[2940.0, 2940.0]
[17.0, 17.0]
[111, 121]
p02777
u419963262
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['N=int(input())\nA=input()\nif len(set(A))-1==N:\n print("Yes")\nelse:\n print("No")', 'S,T=input().split()\nA,B=input().split()\nU=input()\na=int(A)\nb=int(B)\nif U==S:\n print(a-1,b)\nelse:\n print(a,b-1)']
['Runtime Error', 'Accepted']
['s677434586', 's438074811']
[2940.0, 3060.0]
[17.0, 17.0]
[84, 116]
p02777
u421828301
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['# -*- coding: utf-8 -*-\n\n\nS, T = map(str, input().split())\nA, B = map(int, input().split())\nU = str(input())\n\n\nif S == U:\n print(B)\nelse:\n print(A)\n\n\n\n', "# -*- coding: utf-8 -*-\n\n\nn = int(input())\n\nA = list(map(int, input().split()))\n\nresult = 'YES'\n\n\nfor i in range(n):\n for j in range(n):\n if j == i:\n continue\n else:\n if A[i] == A[j]:\n result = 'NO'\n \n goto .end\n\n\nlabel.end\n\nprint(result)\n\n \n", "# -*- coding: utf-8 -*-\n\n\nS, T = map(str, input().split())\nA, B = map(int, input().split())\nU = str(input())\n\n\nif S == U:\n A -= 1\nelse:\n B -= 1\n\n\nprint('{} {}'.format(A, B))\n\n\n\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s120831234', 's690299560', 's628428621']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[171, 350, 204]
p02777
u422272120
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['S,T = input().split()\nA,B = map(int,input().split())\nd = {S:A,T:B}\nU = input()\nd[U] = d[U]-1\nfor i in d.values():\n print (i,end=" ")\n', 'S,T = input().split()\nA,B = map(int,input().split())\nU = input()\nif U == S:\n print (A-1,B)\nelse:\n print (A,B-1)\n']
['Wrong Answer', 'Accepted']
['s031399319', 's424574467']
[2940.0, 2940.0]
[17.0, 17.0]
[136, 118]
p02777
u424035469
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
["\na = input()\nb = input()\n\n\naCount = int(input())\nbCount = int(input())\nball = []\nball.append(aCount)\nball.append(bCount)\n\n\nselectBall = input()\n\nif selectBall == a:\n aCount = aCount-1\n ball[0] = aCount\n print(' '.join(map(str,ball)))\nelif selectBall == b:\n bCount = bCount-1\n ball[1] = bCount\n print(' '.join(map(str,ball)))\nelse:\n print(' '.join(map(str,ball)))\n", '\n\n\ns = input()\nsLength = len(s)\nhoge = []\n\nfor i in range(sLength):\n c = s[i]\n c = "x"\n hoge.append(c)\n\nprint(\'\'.join(map(str,hoge)))\n\n', "\na = input()\nb = input()\n\n\naCount = int(input())\nbCount = int(input())\nball = []\nball.append(aCount)\nball.append(bCount)\n\n\nselectBall = input()\n\n\n# aLength = len(a)\n# bLength = len(b)\n\n# print(aLength)\n# print(bLength)\n\nif selectBall == a:\n aCount = aCount-1\n # print(aCount)\n ball[0] = aCount\n print(' '.join(map(str,ball)))\nelif selectBall == b:\n bCount = bCount-1\n ball[1] = bCount\n print(' '.join(map(str,ball)))\nelse:\n print(' '.join(map(str,ball)))\n", "\na, b = input().split()\n\n\naCount, bCount = input().split()\naNumber = int(aCount)\nbNumber = int(bCount)\n\nball = []\nball.append(aNumber)\nball.append(bNumber)\n\n\nselectBall = input()\n\nif selectBall == a:\n aNumber = aNumber-1\n ball[0] = aNumber\n print(' '.join(map(str,ball)))\nelif selectBall == b:\n bNumber = bNumber-1\n ball[1] = bNumber\n print(' '.join(map(str,ball)))\nelse:\n print(' '.join(map(str,ball)))\n"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s610422456', 's805405467', 's992289763', 's873902401']
[3064.0, 2940.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[522, 227, 664, 563]
p02777
u425185891
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['Ball = list(map(str, input().split()))\nNum = list(map(int, input().split()))\nOutputBall = input()\nprint((Num[0] - 1, Num[1]) if Ball[0] == OutputBall else (Num[0],\n Num[1] - 1))\n', 'Ball = list(map(str, input().split()))\nNum = list(map(int, input().split()))\nOutputBall = input()\nOutput = [Num[i] - 1 if Ball[i] == OutputBall else Num[i] for i in range(2)]\nprint(Output[0], Output[1])']
['Wrong Answer', 'Accepted']
['s563178308', 's242732692']
[2940.0, 3060.0]
[17.0, 17.0]
[183, 202]
p02777
u427984570
2,000
1,048,576
We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now.
['a,b = map(str, input().split())\nc,d = map(int, input().split())\ne = input()\nif a == e:\n c -= 1\nelse:\n d -= 1\nprint(a,b)', 'a,b = map(str, input().split())\nc,d = map(int, input().split())\ne = input()\nif a == e:\n c -= 1\nelse:\n d -= 1\nprint(c,d)\n']
['Wrong Answer', 'Accepted']
['s670639226', 's575713067']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 122]