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
s823744328
p03711
u371530330
1565586558
Python
Python (3.4.3)
py
Runtime Error
17
3064
249
h,w = map(int, input().split()) a = [input() for i in range(h)] b = [] for i in range(h): a[i].insert(0,'#') a[i].append('#') for i in range(w+2): b.append('#') a.insert(0,b) a.append(b) for i in a: print("".join(list(map(str,i))))
s149702506
p03711
u371530330
1565586080
Python
Python (3.4.3)
py
Runtime Error
17
3064
251
h,w = map(int, input().split()) a = [input().split() for i in range(h)] a = {} b = [] for i in h: a[i].insert(0,'#') a[i].append('#') for i in w+2: b.append('#') a.insert(0,b) a.append(b) for i in a: print("".join(list(map(str,i))))
s385359237
p03711
u371530330
1565562180
Python
Python (3.4.3)
py
Runtime Error
20
3060
176
x,y = map(int, input().split()) a[0] = [1,3,5,7,8,10,12] a[1] = [4,6,9,11] a[2] = [2] for i in range(3): if x in a[i] and y in a[i]: print('Yes') else: print('No')
s064001866
p03711
u003501233
1564619984
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38384
116
a = [0,1,3,1,2,1,2,1,1,2,1,2,1] x,y = map(int,input().split()) if x[a] == y[a]: print("Yes") else: print("No")
s521195612
p03711
u003501233
1564619933
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a = [0,1,3,1,2,1,2,1,1,2,1,2,1] x,y = map(int,input().split()) if x[a] == y[a]: print("Yes") else: print("No")
s721718378
p03711
u003501233
1564619845
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a = [0,1,3,1,2,1,2,1,1,2,1,2,1] x,y = map(int(input().split()) if x[a] == y[a]: print("Yes") else: print("No")
s388100664
p03711
u759412327
1564429582
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
H,W = list(map(int,input().split())) a = [input() for i in range(H)] for i in range(H+2): if i==0 or i==H+1: print("#"*(W+2)) else: print("#"+a[i-1]+"#")
s015765323
p03711
u921773161
1563968779
Python
Python (3.4.3)
py
Runtime Error
17
3060
205
def judge(x): if x==4 or x==6 or x==9 or x==11: y = a elif x==12: y = b else: y = c return y a,b = map(int,input().split()) if judge(a) == judge(b) : print('Yes') else: print('No')
s834484128
p03711
u663014688
1563469811
Python
Python (3.4.3)
py
Runtime Error
22
3188
216
x,y = map(int,input()) a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] if x in a and y in a: print("Yes") if x in b and y in b: print("Yes") if x in c and y in c: print("Yes") else: print("No")
s581408376
p03711
u759412327
1561778624
Python
Python (3.4.3)
py
Runtime Error
17
3064
221
a = list(map(int,input().split())) b = list(1,3,5,7,8,10,12) c = list(4,6,9,11) d = list(2) e = 0 if a[0] in b and a[1] in b: e += 1 elif a[0] in c and a[1] in c: e += 1 if e == 1: print("Yes") else: print("No")
s281762612
p03711
u933341648
1561293425
Python
Python (3.4.3)
py
Runtime Error
17
3060
195
a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] x, y = map(int, input().split()) if (x in a and y in a) or (x in b and y in b) or (x in c and y in c): print(Yes) else: print(No)
s356270594
p03711
u296150111
1560530692
Python
Python (3.4.3)
py
Runtime Error
17
3064
208
a,b=map(int,input().split()) if a==2: A==2 elif a==4 or a==6 or a==9 or a==11: A==1 else: A==3 if b==2: B==2 elif B==4 or B==6 or B==9 or B==11: B==1 else: B==3 if A==b: print("Yes") else: print("No")
s721997381
p03711
u556589653
1557511767
Python
Python (3.4.3)
py
Runtime Error
17
3064
264
i = list(map(int,input().split())) A_list[1,3,5,7,8,10,12] B_list[4,6,9,11] C_list[2] if i[0] in A_list and i[1] in A_list: print("Yes") if i[0] in B_list and i[1] in B_list: print("Yes") if i[0] in C_list and i[1] in C_list: print("Yes") else: print("No")
s566753338
p03711
u556589653
1557511738
Python
Python (3.4.3)
py
Runtime Error
17
3064
264
x = list(map(int,input().split())) A_list[1,3,5,7,8,10,12] B_list[4,6,9,11] C_list[2] if i[0] in A_list and i[1] in A_list: print("Yes") if i[0] in B_list and i[1] in B_list: print("Yes") if i[0] in C_list and i[1] in C_list: print("Yes") else: print("No")
s828091828
p03711
u055941944
1556772591
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
h,w=map(int,input().split()) print("#"*(w+2)) for i in range(h): x=input() print("#"+x+"#") print("#"*(w+2))
s607679445
p03711
u382431597
1556413266
Python
Python (3.4.3)
py
Runtime Error
17
3064
306
import sys x,y = list(input().split()) judge = 0 x = x.translate(string.maketrans({"3":"1","5":"1","7":"1","8":"1","10":"1","12":"1","6":"4","9":"4","11":"4"})) y = y.translate(string.maketrans({"3":"1","5":"1","7":"1","8":"1","10":"1","12":"1","6":"4","9":"4","11":"4"})) print("Yes" if x == y else "No")
s276766245
p03711
u788856752
1556301507
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
L = [0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0] x, y = map(int, input().split()) if L(x) == L(y): print("Yes") else: print("No")
s926219020
p03711
u788856752
1556301113
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
L = [0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0] x, y = map(int, intput().split()) print(["Yes", "No"] [L(x) == l(y)])
s879310022
p03711
u788856752
1556301014
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
L = [0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0] x, y = map(int, intput().split()) print(["Yes", "No"] [if L(x) == l(y)]
s336036394
p03711
u041075929
1556204055
Python
Python (3.4.3)
py
Runtime Error
17
3064
448
import sys, os f = lambda:list(map(int,input().split())) if 'local' in os.environ : sys.stdin = open('./input.txt', 'r') def solve(): a = [1,3,5,7,8,10,12] b = [4,6,9,11] c = [2] some_dic = {} for i in a: some_dic[i] = 1 for i in b: some_dic[i] = 2 for i in c: ...
s247311100
p03711
u481026841
1555967882
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
a,b = map(int,input().split()) if a,b ==[4,6,9,11]: print('Yes') elif a,b ==[1,3,5,7,8,10,12]: print('Yes') else: print('No')
s028657419
p03711
u144980750
1555823717
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
d=[0,1,0,2,0,2,0,0,2,0,2,0] a,b=map(int,input().split()) if d[a]==d[b]: print("Yes") else: print("No")
s493857542
p03711
u144980750
1555823573
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
d=[0,1,0,2,0,2,0,0,2,0,2,0] a,b=map(int,input().split()) if d[a]==d[b]: print("Yes") else: print("No")
s014849579
p03711
u331464808
1555438238
Python
Python (3.4.3)
py
Runtime Error
19
2940
198
x,y=map(int,input().split()) a=[1,3,5,7,8,10,12] b=[4,6,9,11] c=[2] if x=2 or y=2: print("No") if (x in a) and (y in a): print("Yes") if (x in b) and (y in b): print("Yes") else: print("No")
s892705086
p03711
u331464808
1555437752
Python
Python (3.4.3)
py
Runtime Error
17
2940
269
x,y=map(int,input().split()) a=[1,3,5,7,8,10,12] b=[4,6,9,11] c=[2] if x=2 or y=2: print("No") for v in a: if x=v: for w in a: if w =y: print("Yes") for v in b: if x=v: for w in b: if w =y: print("Yes") else: print("No")
s772088225
p03711
u102960641
1555108938
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
x,y = map(int, input().split()) a = [1,3,5,7,8,10,12] b = [4,6,9,11] if (x in a and y in a) or x (in b and y in b): print("Yes") else: print("No")
s308482156
p03711
u899421906
1554599642
Python
Python (3.4.3)
py
Runtime Error
17
2940
211
package main import "fmt" func main() { var a, b int fmt.Scan(&a, &b) temp := [13]int{0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1} if temp[a] == temp[b] { fmt.Println("Yes") } else { fmt.Println("No") } }
s670440457
p03711
u899421906
1554599595
Python
Python (3.4.3)
py
Runtime Error
17
2940
211
package main import "fmt" func main() { var a, b int fmt.Scan(&a, &b) temp := [13]int{0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1} if temp[a] == temp[b] { fmt.Println("Yes") } else { fmt.Println("No") } }
s663273761
p03711
u280512618
1553950859
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
d=[0,1,2,1,0,1,0,1,1,0,1,0,1] a,b=map(int,input.split()) print('Yes' if d[a]==d[b] else 'No')
s055252946
p03711
u732870425
1553570415
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
x,y=map(int,input().split()) a = [1,3,5,7,8,10,12] b = [4,6,9,11] c = [2] if x,y in a: print("Yes") elif x,y in b: print("Yes") elif x,y in c: print("Yes") else: print("No")
s886178146
p03711
u458608788
1553289912
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
a=[0,1,3,1,2,1,2,1,1,2,1,2,1] x,y=map(int,input().split()) print("Yes" if a[x]==x[y] else "No")
s306837936
p03711
u782654209
1553055606
Python
Python (3.4.3)
py
Runtime Error
17
2940
187
a=[1,3,5,7,8,10,12] b=[4,6,9,11] ans='' x,y=map(int,input().split(' ')) if x==y: ans='Yes' else: for c in [a,b]: ans='Yes' if x in c and y in c if ans=='': ans='No' print(ans)
s511893941
p03711
u782654209
1553055553
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
a=[1,3,5,7,8,10,12] b=[4,6,9,11] ans='' x,y=map(int,input().split(' ')) ans='Yes' if x==y for c in (a,b): ans='Yes' if x in c and y in c if ans=='': ans='No' print(ans)
s960888661
p03711
u782654209
1553055522
Python
Python (3.4.3)
py
Runtime Error
17
2940
171
a=[1,3,5,7,8,10,12] b=[4,6,9,11] ans='' x,y=map(int,input().split(' ')) ans='Yes' if x==y for c in (a,b): ans='Yes' if x in c and y in c ans='No' if ans=='' print(ans)
s643138129
p03711
u878138257
1552632411
Python
Python (3.4.3)
py
Runtime Error
17
3064
256
a,b = map(int, input().split()) c = 0 d = 0 e = [1,3,5,7,8,10,12] f = [4,6,9,11] g = [2] for i in e: if i==a: c = x if i==b: d = x for j in f: if j==a: c = y if j==b: d = y if c==d or a==b: print("Yes") else: print("No")
s597355532
p03711
u258436671
1552105073
Python
Python (3.4.3)
py
Runtime Error
18
2940
232
x, y = map(int, input().split()) list1 = [1, 3, 5, 7, 8, 10, 12] list2 = [4, 6, 9, 11] list3 = [2] if (x in list1 and y in list1) or (x in list2 and y in list2) or (x in list3 and y in list3): print('Yes') else: print('No')
s610741024
p03711
u403984573
1552095511
Python
Python (3.4.3)
py
Runtime Error
17
2940
359
a,b=map(int,input().split()) if a==1 or a==3 or a==5 or a==7 or a==8 or a==10 or a==12: if b==1 or b==3 or b==5 or b==7 or b==8 or b==10 or b==12: print("Yes") else: print("No") if a==4 or a==6 or a==9 or a=11: if b==2 or b==6 or b==9 or b==11 print("Yes") else: print("No") if a==2: if b==2: ...
s763811344
p03711
u652081898
1551851431
Python
Python (3.4.3)
py
Runtime Error
17
3060
231
x, y = map(int, input().split()) a, b, c = (4, 6, 9, 11), (1, 3, 5, 7, 8, 10, 12), (2) if x in a and y in a: print("Yes") elif x in b and y in b: print("Yes") elif x in c and y in c: print("Yes") else: print("No")
s084658472
p03711
u439392790
1551754974
Python
Python (3.4.3)
py
Runtime Error
17
2940
162
x,y=map(int,input().split()) g1=[1,3,5,7,8,10,12] g2=[4,6,9,11] if (((x in g1) and (y in g1)) or ((x in g2) and (y in g2))) print('Yes') else: print('No')
s611393111
p03711
u543954314
1550360560
Python
Python (3.4.3)
py
Runtime Error
18
2940
167
s = [[1, 3, 5, 7, 8, 10, 12][4, 6, 9, 11][2]] x, y = map(int, input().split()) for i in range(3): if x in s[i] and y in s[i]: print("Yes") exit() print("No")
s311480242
p03711
u223133214
1549130060
Python
Python (3.4.3)
py
Runtime Error
17
3060
169
x,y=map(int,input().split()) a=[1,3,5,7,8,10,12] b=[4,6,9,11] c=[2] d=[a,b,c] for i in d: if x in d[i] and y in d[i]: print('Yes') exit() print('No')
s789112743
p03711
u223133214
1549129616
Python
Python (3.4.3)
py
Runtime Error
18
2940
143
x,y=map(int,input().split()) a=[1,3,5,7,8,10,12] b=[4,6,9,11] c=[2] if x,y in a or x,y in b or x,y in c: print('Yes') else: print('No')
s804616076
p03711
u892796322
1546309361
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
x, y = map(int, input().split()) a = [0, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1] if a[x] == a[y]: print("Yes") else: print("No")
s515468135
p03711
u371467115
1546230318
Python
Python (3.4.3)
py
Runtime Error
18
2940
178
H, W = map(int, input().split()) picture = [input() for i in range(H)] print('#'*(W+2)) for i in range(H): print('#' + picture[i] + '#') print('#'*(W+2)) #コピペです。
s806162318
p03711
u928784113
1545057600
Python
Python (3.4.3)
py
Runtime Error
20
2940
195
# -*- coding; utf-8 -*- H,W = map(int,input().split()) a = [] for i in range(H): a.append(map(str,input().split())) print("#####") while i < H: print("#"+str(a[i])+"#") i=i+1 print("#####")
s172289767
p03711
u434208140
1544905514
Python
Python (3.4.3)
py
Runtime Error
19
2940
93
g=[0,2,0,1,0,1,0,0,1,0,1,0] a,b=map(int,input().split()) print('Yes' if g[a]==g[b] else 'No')
s781218931
p03711
u669382434
1544214044
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
x,y=[int(i) for in input().split()] a=[[1,3,5,7,8,10,12],[4,6,9,11]] ans="No" for i in [0,1]: if a[i].count(x) and a[i].count(y): ans="Yes" print(ans)
s140799173
p03711
u791664126
1541532234
Python
Python (3.4.3)
py
Runtime Error
17
3060
155
x,y=map(int,input().split()) l=[[4,6,9,11],[2],[1,3,5,6,8,10,12]] for i in l: if x in i:xx=l.index(i) if y in i:yy=l.index(i) print('YNeos'[xx!=yy::2])
s077924991
p03711
u090225501
1540877237
Python
Python (3.4.3)
py
Runtime Error
17
2940
191
a = %w(1 3 5 7 8 10 12) b = %w(4 6 9 12) c = %w(2) x, y = gets.chomp.split [a, b, c].each do |s| if s.include? x and s.include? y puts 'Yes' exit end end puts 'No'
s017526227
p03711
u897302879
1540864489
Python
Python (3.4.3)
py
Runtime Error
17
3060
185
groups = [[1, 3, 5, 7, 8, 12], [4, 6, 9, 11], [2]] gg = lambda t: [i for i in range(0, 3) if t in groups[i]][0] x, y = map(int, input().split()) print('Yes' if gg(x) == gg(y) else 'No')
s645456490
p03711
u177398299
1537197527
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
g1, g2, g3 = {1, 3, 5, 7, 8, 10, 12}, {4, 6, 9, 11}, {2} print('Yes' if {a, b} in g1 or {a, b} in g2 else 'No')
s814961701
p03711
u427344224
1537136260
Python
Python (3.4.3)
py
Runtime Error
17
2940
2818
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); Scanner sc = new Scan...
s293422854
p03711
u138486156
1536842189
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
a = [[1,3,5,7,8,10,12],[4,6,9,11],[2]] x,y = input().split() for i in range(3): if (x and y) in a[i]: print('Yes') exit() print('No')
s959578173
p03711
u601082779
1536025289
Python
Python (3.4.3)
py
Runtime Error
17
2940
30
print('YNeos'[2in input()::2])
s277645845
p03711
u796269639
1532633549
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
a = [1,3,5,7,8,10,12] b = [4,6,9,11] c = [2] if x in a and y in a: print("Yes") elif x in b and y in b: print("Yes") elif x in c and y in c: print("Yes") else: print("No")
s526570729
p03711
u443569380
1528006165
Python
Python (3.4.3)
py
Runtime Error
18
3064
157
x,y = map(int,input().split()) li =[[1,3,5,7,8,10,12],[4,6,9,11],[2]] for i in li: if x and y in i: print("Yes") sys.exit() print("No")
s178185267
p03711
u668726177
1523378222
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
g = [0,2,0,1,0,1,0,0,1,0,1,0] x, y = map(int, input().split()) print('Yes' if g[x]==g[y] else 'No')
s902650083
p03711
u668726177
1523378143
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
group = [0,2,0,1,0,1,0,0,1,0,1,0] x, y = map(int, input().split()) print('Yes' if group[x]==group[y] else 'No')
s668460437
p03711
u766407523
1522614109
Python
Python (3.4.3)
py
Runtime Error
17
3060
178
a = set([1, 3, 5, 7, 8, 10, 12]) b = set([4, 6, 9, 11]) c = set([2]) xy = list(map(int, input().split())) if xy in a or xy in b or xy in c: print('Yes') else: print('No')
s832481542
p03711
u694163146
1521672238
Python
Python (3.4.3)
py
Runtime Error
18
3188
441
#include <bits/stdc++.h> #define rep(i,n) for(int i=1;i<=n;++i) #define YES cout<<"YES"<<endl #define NO cout<<"NO"<<endl using namespace std; int main(){ int a,b,a_g,b_g; cin >> a >> b; int comp[3][7]={{1,3,5,7,8,10,12},{4,6,9,11,0,0,0},{2,0,0,0,0,0,0}}; rep(i,3){ rep(j,7){ if (comp[i][j]==a) a_g=i; ...
s442191656
p03711
u694163146
1521671682
Python
Python (3.4.3)
py
Runtime Error
17
3060
283
# -*- coding:utf-8 -*- tup = ((1,3,5,7,8,10,12),(4,6,9,11),(2)) if __name__=="__main__": x = input() y = input() x_g = 0 y_g = 0 for i in range(3): if x in tup[i]: x_g=i if y in tup[i]: y_g=i if y_g==x_g: print('Yes') else: print('No')
s957743334
p03711
u694163146
1521671635
Python
Python (3.4.3)
py
Runtime Error
17
3060
282
# -*- coding:utf-8 -*- tup = ((1,3,5,7,8,10,12),(4,6,9,11),(2)) if __name__=="__main__": x = input() y = input() x_g = 0 y_g = 0 for i in range(3): if x in tup(i): x_g=i if y in tup(i): y_g=i if y_g==x_g: print('Yes') else: print('No')
s490538075
p03711
u123756661
1521423209
Python
Python (3.4.3)
py
Runtime Error
18
2940
199
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- h,w=map(int,input().split()) for i in range(h+2): if i==0 or i==h+1: print("#"*w+"##") else: a=input() print("#"+a+"#")
s465197994
p03711
u612721349
1520898732
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
s=map(int,input().split());print(["No","Yes"[s in[1,3,5,7,8,10,12]or s in[4,6,9,11]])
s571182107
p03711
u586577600
1514848906
Python
Python (3.4.3)
py
Runtime Error
17
2940
195
x, y = map(int, input().split()) a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] if (x in a and y in a) or (x in b and y in b) or (x in c in y in c): print('Yes') else: print('No')
s272096207
p03711
u667024514
1510965940
Python
Python (3.4.3)
py
Runtime Error
17
2940
204
a, b = map(int,input().split()) if a == 1,3,5,7,8,10: if b == 3,5,7,8,10,12: print("Yes") else: print("No") elif a == 4,6,9: if b == 6,9,11: print("Yes") else: print("No") else: print("No")
s550934912
p03711
u602860891
1504073223
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
group_list = [0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2] x, y = list(map(int, input().split())) if group_list[x] == group_list[y]: print('Yes') else: print('No')
s673505648
p03711
u035372052
1498594606
Python
Python (3.4.3)
py
Runtime Error
18
3188
258
x = input() y = input() groupA = [1,3,5,7,8,10,12] groupB = [4,6,9,11] groupC = [2] if x in groupA and y in groupA: print("Yes") elif x in groupB and y in groupB: print("Yes") elif x in groupC and y in groupC: print("Yes") else: print("No")
s990797199
p03711
u735154525
1498440279
Python
Python (2.7.6)
py
Runtime Error
11
2568
239
g2 = [4, 6, 9, 11] g3 = [2] s = map(int, raw_input().split()) x = s[0] y = s[1] if (x in g1) and (y in g1): print "Yes" elif (x in g2) and (y in g2): print "Yes" elif (x in g3) and (y in g3): print "Yes" else: print "No"
s576299319
p03711
u237267413
1497847774
Python
Python (3.4.3)
py
Runtime Error
16
2940
441
import numpy as np #from scipy.interpolate import interpld from matplotlib import pyplot as plt %matplotlib inline import sys x, y = [int(i) for i in input().split()] list = [1,3,5,7,8,10,12,4,6,9,11,2,0] slice1 = list[0:7] slice2 = list[7:11] slice3 = list[11:12] if x in slice1 and y in slice1: print('Yes') elif ...
s218777797
p03711
u871999682
1497457255
Python
Python (2.7.6)
py
Runtime Error
11
2692
186
group =[0,1,3,1,2,1,2,1,1,2,1,2,1] input_lines=raw_input() input_numbers=input_lines.split() n=map(int,input_numbers) if group[n[0]] == group[n[1]] print "Yes" else: print "NO"
s660085839
p03711
u871999682
1497456884
Python
Python (2.7.6)
py
Runtime Error
10
2568
579
coding: utf-8 group={'a':[1,3,5,7,8,10,12],'b':[4,6,9,11],'c':[2]} input_lines=raw_input() input_numbers=input_lines.split() n=map(int,input_numbers)#n[0]とn[1]に数字 first_group = False second_group = False for i in group: for j in range(0,len(group[i])): if group[i][j] == n[0]: first_group = T...
s619353689
p03711
u424489323
1496757801
Python
Python (2.7.6)
py
Runtime Error
10
2568
146
hw = raw_input().split(" ") h = int(hw[0]) w = int(hw[1]) print("#"*(w+2)) for i in range(h): print("#" + raw_input() + "#") print("#"*(w+2))
s131856817
p03711
u190525112
1496466206
Python
Python (3.4.3)
py
Runtime Error
17
3064
219
x = list(map(int, input().split())) a=[input() for i in range(x[0])] for i in range(x[1]): print('#',end="") print('') for i in a: print('#{0}#'.format(i)) for i in range(x[1]): print('#',end="") print('')
s699505897
p03711
u450956662
1496434611
Python
Python (3.4.3)
py
Runtime Error
17
3060
202
# -*- coding: utf-8 -*- H, W = map(int, input().split()) A = [] for i in range(H): A.append("#") a = input() A[i] += a + "#" A = ["#" * (W+2)] + A + ["#" * (W+2)] for i in A: print(i)
s886587633
p03711
u119303585
1496005381
Python
Python (3.4.3)
py
Runtime Error
18
3064
359
N = int(input()) array=[int(n) for n in input().split()] lst=[] for i in range(N+1): left_array=array[:N+i] print(left_array) l = sorted(left_array)[-N:] print('l:',l) right_array=array[N+i:] print(right_array) r = sorted(right_array)[:N] print('r:',r) ans = sum(l)-sum(r) print(a...
s261007588
p03711
u119303585
1495989342
Python
Python (3.4.3)
py
Runtime Error
17
3064
696
h, w = [int(n) for n in input().split()] i = min(h, w) j = max(h, w) area = i * j if i % 3 == 0 or j % 3 == 0: print(0) else: p = j // 3 + 1 pp = i // 3 + 1 q = j // 3 - 1 qq = i // 3 - 1 a1 = i * p aa1 = j * p a2 = i * q aa2 = j * q b1 = i // 2 * (j - p) bb1 = j // 2 * (i - ...
s148734228
p03711
u119303585
1495989042
Python
Python (3.4.3)
py
Runtime Error
17
3064
1103
h, w = [int(n) for n in input().split()] i = min(h, w) j = max(h, w) area = i * j if i % 3 == 0 or j % 3 == 0: print(0) else: p = j // 3 + 1 pp = i // 3 + 1 q = j // 3 - 1 qq = i // 3 - 1 a1 = i * p aa1 = j * p a2 = i * q aa2 = j * q b1 = i // 2 * (j - p) bb1 = j // 2 * (i - ...
s524316961
p03711
u119303585
1495984806
Python
Python (3.4.3)
py
Runtime Error
17
2940
224
ipt = input().split() a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] i=int(ipt[0]) j=int(ipt[1]) if i==j: print('Yes') elif i in and j in a: print('Yes') elif i in b and j in b: print('Yes') else: print('No')
s268618455
p03711
u119303585
1495983073
Python
Python (3.4.3)
py
Runtime Error
17
2940
233
ipt = list(map(int, input().split())) a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] if ipt[0] == ipt[1]: return True else: if ipt[0] in a: return ipt[1] in a else: ipt[0] in b: return ipt[1] in b
s985156792
p03711
u820330680
1495982950
Python
Python (3.4.3)
py
Runtime Error
17
2940
236
x, y = map(int,input().split()) grpup_1 = [1, 3, 5, 7, 8, 10, 12] group_2 = [4, 6, 9, 11] group_3 = [2] groups = [group1, group_2, group_3] for group in groups: if x, y in group: print("Yes") else: print("No")
s311336312
p03711
u780709476
1495943248
Python
Python (3.4.3)
py
Runtime Error
17
2940
203
group = [[1,3,5,7,8,10,12],[4,6,9,11]] x, y = map(int, raw_input().split()) for i in range(0,1): if(group[i].count(x) > 0 and group[i].count(y) > 0): print("Yes") exit() print("No")
s441411553
p03711
u373627944
1495912586
Python
Python (3.4.3)
py
Runtime Error
17
3060
243
x, y = map(int, input().split()) if x == 2 or y == 2: print('No') else: m1 = set(1, 3, 5, 7, 8, 10, 12) m2 = set(4, 6, 9, 11) if (x in m1 and y in m1) or (x in m2 and y in m2): print('Yes') else: print('No')
s286181594
p03711
u340294296
1495892936
Python
Python (3.4.3)
py
Runtime Error
17
2940
330
import sys l_1 = [1,3,5,7,8,10,12] l_2 = [4,6,9,11] x, y = map(int, input().split()) if x == 2: if y == 2: print("yes") else: print("no") elif x in l_1: if y in x_1: print("yes") else: print("no") else x in l_2: if y in l_2: print("yes") else: p...
s746037506
p03711
u340294296
1495892845
Python
Python (3.4.3)
py
Runtime Error
17
2940
334
import sys l_1 = [1,3,5,7,8,10,12] l_2 = [4,6,9,11] x,y = map(list(int,input()).split()) if x == 2: if y == 2: print("yes") else: print("no") elif x in l_1: if y in x_1: print("yes") else: print("no") else x in l_2: if y in l_2: print("yes") else: ...
s910648867
p03711
u340294296
1495892763
Python
Python (3.4.3)
py
Runtime Error
17
2940
332
l_1 = [1,3,5,7,8,10,12] l_2 = [4,6,9,11] l_3 = [2] x,y = map(list(int,input()).split()) if x == 2: if y == 2: print("yes") else: print("no") elif x in l_1: if y in x_1: print("yes") else: print("no") else x in l_2: if y in l_2: print("yes") else: ...
s153363902
p03711
u639297580
1495829028
Python
Python (3.4.3)
py
Runtime Error
17
2940
252
def f(a): if a==2: return 2 if a==4: return 1 if a==6: return 1 if a==9: return 1 if a==11: return 1 return 0 x, y = map(int, raw_input().split()); print "Yes" if f(x) == f(y) else "No"
s702114815
p03711
u203414902
1495653708
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
x,y=map(int, input().split()) a = [0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1] if a[x] == a[y]: print("YES") else: print("NO") )
s491732410
p03711
u203414902
1495653653
Python
Python (3.4.3)
py
Runtime Error
17
3064
82
a= int(input()) b,c=map(int, input().split()) s=input() print (str(a+b+c)+" "+s)
s274991030
p03711
u612516335
1495580828
Python
Python (3.4.3)
py
Runtime Error
17
2940
178
G1 = [1, 3, 5, 7, 8, 10, 12] G2 = [4, 6, 9, 11] x, y = map(int, input().strip().split(' ')) if x in G1 and y in G1or x in G2 and y in G2: print("Yes") else: print("No")
s235468671
p03711
u583326945
1495567711
Python
Python (3.4.3)
py
Runtime Error
17
3064
424
import sys group1 = [1, 3, 5, 7, 8, 10, 12] group2 = [4, 6, 9, 11] group3 = [2] input_x = int(sys.argv[1]) input_y = int(sys.argv[2]) exist_group1 = group1.count(input_x) + group1.count(input_y) exist_group2 = group2.count(input_x) + group2.count(input_y) exist_group3 = group3.count(input_x) + group3.count(input_y) ...
s646435535
p03711
u837852400
1495552214
Python
Python (3.4.3)
py
Runtime Error
17
3060
273
H,W = buf.split() H = int(H) W = int(W) pic = [] for i in range(H): pic.append(input()) #for row in pic: # print(row) for i in range(W+2): print("#",end="") print() for i in range(H): print("#"+pic[i]+"#") for i in range(W+2): print("#",end="")
s000937249
p03711
u622011073
1495430217
Python
Python (3.4.3)
py
Runtime Error
18
2940
96
h,w=map(int,input().split());w+=2 print('#'*w) for _ in[0]*h:print('#'+input()+'#') print('#'*w)
s920890979
p03711
u648375714
1495427233
Python
Python (3.4.3)
py
Runtime Error
17
3060
205
a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] x = int(input("x = ")) y = int(input("y = ")) if x in a and y in a or x in b and y in b or x in c and y in c: print("Yes") else: print("No")
s947172366
p03711
u648375714
1495427046
Python
Python (3.4.3)
py
Runtime Error
17
3064
244
a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] x = int(input("x = ")) y = int(input("y = ")) if x in a and y in a: print("Yes") elif x in b and y in b: print("Yes") elif x in c and y in c: print("Yes") else: print("No")
s355281340
p03711
u622011073
1495424521
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
nput().split());a=[4,6,9,11];b=[1,3,5,7,8,10,12];print(['No','Yes'][(x in a and y in a)+x in b and y in b])
s989554118
p03711
u622011073
1495424461
Python
Python (3.4.3)
py
Runtime Error
17
3060
118
x,y=map(int,input().split());a=[4,6,9,11];b=[1,3,5,7,8,10,12];print(['No','Yes'][x in a and y in a+x in b and y in b])
s076358021
p03711
u067983636
1495409002
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
H, W = list(map(int,input().split())) blank = ["#" for i in range(W + 2)] print("".join(blank)) for line in range(H): print("#" + input() + "#") print("".join(blank))
s309697368
p03711
u205678452
1495333946
Python
Python (3.4.3)
py
Runtime Error
17
3064
307
H, W = (int(i) for i in input().split()) str = [input() for i in range(H)] print(str) for i in range(W+2): print("#", end = "") print("") for i in range(H): print("#", end = "") print(str[i], end = "") print("#") for i in range(W+2): print("#", end = "") print("")
s785602719
p03711
u529186305
1495333409
Python
Python (2.7.6)
py
Runtime Error
10
2568
302
# -*- coding: utf-8 -*- x, y = map(int, input().split()) #def list list1 = [1,3,5,7,8,10,12] list2 = [4,6,9,11] list3 = [2] #group check if x in list1 and y in list1: print "YES" elif x in list2 and y in list2: print "YES" elif x in list3 and y in list3: print "YES" else: print "NO"