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
s731797298
p03635
u538473330
1563312018
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38256
39
n,m = int(input().split()) print(m*n)
s510571946
p03635
u538473330
1563311977
Python
PyPy3 (2.4.0)
py
Runtime Error
178
38256
45
n = int(input()) m = int(input()) print(m*n)
s109349527
p03635
u136811344
1562860659
Python
Python (3.4.3)
py
Runtime Error
18
2940
40
n,m=map(int, input()) print((n-1)*(m-1))
s936481949
p03635
u374802266
1562296113
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a=list(map(int,input().sprit())) print((a[0]-1)*(a[1]-1))
s323812915
p03635
u641460756
1561222602
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
n.m=map(int,input().split()) print((n-1)*(m-1))
s262805738
p03635
u770077083
1560525992
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
r = map(lambda x:int(x)-1, input().split()) print(r[0]*r[1])
s575344480
p03635
u788137651
1559750737
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38384
1364
# #    ⋀_⋀  #   (・ω・) # ./ U ∽ U\ # │* 合 *│ # │* 格 *│ # │* 祈 *│ # │* 願 *│ # │*   *│ #  ̄ # import sys input=sys.stdin.readline inf=float('inf') mod = 10**9+7 def INT_(n): return int(n)-1 def MI(): return map(int,input().split()) def MF(): return map(float, input().split()) def MI_(): return map(INT_,i...
s614975357
p03635
u095756391
1559407969
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
n, m = input().split() print((n-1)*(m-1))
s522213000
p03635
u476418095
1559339124
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
a=int(input()) b=int(input()) print((a-1)*(b-1))
s136339962
p03635
u550895180
1558566474
Python
Python (3.4.3)
py
Runtime Error
17
2940
250
import sys def solve(n,m): return n*m//2 def readQuestion(): ws = sys.stdin.readline().strip().split() a = int(ws[0]) b = int(ws[1]) return (a, b,) def main(): solve(*readQuestion()) # Uncomment before submission main()
s077530372
p03635
u528807020
1557521976
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
# -*- coding: utf-8 -*- n, m = [int(i) for i in input().split()] if 2 <= n and m <= 100: print(int((n - 1)(m - 1)))
s206910526
p03635
u528807020
1557521907
Python
Python (3.4.3)
py
Runtime Error
16
2940
110
# -*- coding: utf-8 -*- n, m = [int(i) for i in input().split()] if 2 <= n and m <= 100: print((n-1)(m-1))
s689393641
p03635
u532966492
1557160974
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
print((int(input())-1)*(int(input())-1))
s862628494
p03635
u625811641
1555983507
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
a,b = map(input().split()) print((a-1)*(b-1))
s624332816
p03635
u396495667
1555863579
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n=int(input()) m=int(input()) print((n-1)*(m-1))
s788952052
p03635
u802772880
1555310404
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
n,m=map(int,input().split()) print((n-1)*(m-1))
s686691525
p03635
u623819879
1554508747
Python
PyPy3 (2.4.0)
py
Runtime Error
186
39408
1
c
s460409056
p03635
u565204025
1554234611
Python
Python (3.4.3)
py
Runtime Error
21
3316
406
from collections import defaultdict N = int(input()) a = [int(i) for i in input().split()] b = [] for x in a: num = 0 if x%2 == 0: x = x//2 num += 1 if x%2 == 0: num += 1 b.append(num) if b.count(0) <= b.count(2): print('Yes') else: if b.count(0) == b.count(2)+1 a...
s269086426
p03635
u100800700
1553714039
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
S = input() print(S[0] + string(len(S)-2) + S[len(S)])
s061536069
p03635
u185464141
1553285282
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n,m = map(int, input.split()) print((n - 1)*(m - 1))
s386270009
p03635
u782654209
1553057290
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
n,m=map(int,input().split(' ')) print(sum((n-1)*(m-1)))
s712351687
p03635
u314238753
1551493498
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
n, m=input().split() print((n-1)*(m-1))
s688777762
p03635
u314238753
1551493423
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
n, m=input().split() print((n-1)*(m-1))
s160248449
p03635
u543954314
1551053260
Python
Python (3.4.3)
py
Runtime Error
19
3060
272
n = int(input()) a = list(map(int, input().split())) d = {1:0, 2:0, 4:0} for i in a: if i % 4 == 0: d[4] += 1 elif i % 2 == 0: d[2] += 1 else: d[1] += 1 if d.get(2, 0) >= 1: d[1] += 1 if d.get(1, 0) <= d.get(4, 0)+1: print("Yes") else: print("No")
s125250618
p03635
u345731720
1550801762
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
print((int(input()) - 1) * (int(input()) - 1))
s511635000
p03635
u282228874
1550616733
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
n,m = map(int,input().spilt()) print((n-1)*(m-1))
s909341317
p03635
u247366051
1550592587
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
print((int(input())-1)*(int(input())-1))
s967539811
p03635
u397563544
1549519792
Python
Python (3.4.3)
py
Runtime Error
18
2940
47
n,m = map(int,input().split) print((n-1)*(m-1))
s794758778
p03635
u950708010
1547072274
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
n= int(input()) m= int(input()) print((n-1)*(m-1))
s484917157
p03635
u993642190
1546540080
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n = int(input()) -1 m = int(input()) -1 print(n * m)
s971158627
p03635
u993642190
1546508319
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n = int(input()) -1 m = int(input()) -1 print(n * m)
s212836219
p03635
u993642190
1546508271
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
print((int(input()) -1) * (int(input()) -1))
s012360045
p03635
u993642190
1546508202
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
print((int(input()) -1) * (int(input()) -1))
s648254189
p03635
u239342230
1546413539
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
a,b=map(int,input()) print((a-1)*(b-1))
s368571130
p03635
u071061942
1546287638
Python
Python (3.4.3)
py
Runtime Error
18
2940
53
n,m = int(input()) ans = (n - 1) * (m - 1) print(ans)
s781745626
p03635
u669382434
1544907097
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
s=input() print(s[0]+str(len(s-2))+s[-1])
s567320105
p03635
u933214067
1544327072
Python
Python (3.4.3)
py
Runtime Error
38
5260
175
from statistics import mean, median,variance,stdev import sys import math #a = input().split() #y = input().split() x = int(input()) y = int(input()) x=-1 y=-1 print(x*y)
s171870773
p03635
u933214067
1544327028
Python
Python (3.4.3)
py
Runtime Error
39
5272
187
from statistics import mean, median,variance,stdev import sys import math #a = input().split() #y = input().split() a = input() x = int(input()) y = int(input()) x=-1 y=-1 print(x*y)
s572376908
p03635
u129978636
1543542721
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
n, m = map(int(input().split()) print((n-1)*(m-1))
s758306252
p03635
u129978636
1543542667
Python
Python (3.4.3)
py
Runtime Error
18
2940
38
n, m = int(input()) print((n-1)*(m-1))
s861705288
p03635
u839873388
1542918159
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n, m = map(int, input.split()) print((n-1) * (m-1))
s334373326
p03635
u037098269
1542864131
Python
Python (3.4.3)
py
Runtime Error
17
3064
596
n = int(input()) #a(i)とa(i+1)について、 #(1)二つとも偶数 #一つが4の倍数 #1,4,3,4,2,2,4,5 #2の個数はなんでも良いが、4でそのまとまりを挟む必要がある count4 = 0 count2 = 0 count_odd = 0 num_list = list(map(int, input().split())) for i in num_list: if i % 4 == 0: count4 += 1 elif i % 4 == 2: count2 = 1 if i % 2 == 1: count_odd += ...
s167998144
p03635
u729133443
1537761723
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
print(eval('('+input().replace(' ','-1)*(')+('-1)'))
s009145744
p03635
u317892501
1537147201
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n = int(input()) m = int(input()) print((n-1)*(m-1))
s273782697
p03635
u038027079
1535562257
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
n,m = int(input()) print((n-1) * (m-1))
s415559703
p03635
u636311816
1535009995
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
a,b=map(int.input().split()) print(a-1*b-1)
s889132893
p03635
u201234972
1534712984
Python
Python (3.4.3)
py
Runtime Error
16
2940
53
n, m = map( int, input().split()) print((n-1)*(m-1))a
s459262106
p03635
u052347048
1532392380
Python
Python (3.4.3)
py
Runtime Error
18
2940
69
a,b = map(int,input().split()) print((a-1)*(b-1) if (a-1)*(b-1) >= 4)
s119548842
p03635
u052347048
1532392336
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
a,b = map(int,input()) print((a-1)*(b-1) if (a-1)*(b-1) >= 4 else 0)
s742824376
p03635
u267325300
1532385219
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
n.m = map(int, input().split()) print((n - 1) * (m - 1))
s637247833
p03635
u864565901
1528174233
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
n,m=map(int,input().split()) print((n-1)(m-1))
s590886117
p03635
u443569380
1527920165
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n,m = int(input()) print((n-1)*(m-1))
s034759502
p03635
u749483542
1516206407
Python
Python (3.4.3)
py
Runtime Error
17
2940
165
# -*- coding: utf8 -*- n = int(input()) m = int(input()) if n >= 2: if n <= 100: if m >= 2: if m <= 100: print((n-1)*(m-1))
s753804229
p03635
u749483542
1516206033
Python
Python (3.4.3)
py
Runtime Error
17
2940
169
# -*- coding: utf8 -*- n = int(input(.txt)) m = int(input(.txt)) if n > 2: if n < 100: if m > 2: if m < 100: print((n-1)*(m-1))
s270042451
p03635
u749483542
1516205857
Python
Python (3.4.3)
py
Runtime Error
17
2940
161
# -*- coding: utf8 -*- n = int(input()) m = int(input()) if n > 2: if n < 100: if m > 2: if m < 100: print((n-1)*(m-1))
s192948480
p03635
u749483542
1516205054
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
n = int(input()) m = int(input()) print((n-1)*(m-1))
s346151173
p03635
u749483542
1516204076
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
# -*- coding: utf8 -*- n = int(input()) m = int(input()) print((n-1)*(m-1))
s785984725
p03635
u811558048
1510839119
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
def main(): n = int(input()) m = int(input()) print( (n-1)*(m-1) ) main()
s929225265
p03635
u616040357
1510550528
Python
Python (3.4.3)
py
Runtime Error
18
2940
68
n = int(input()) m = int(input()) a =( (n - 1) * (m - 1)) print(a)
s133735875
p03635
u616040357
1510550306
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
n = int(input()) m = int(input()) a = (n - 1) * (m - 1) print(a)
s618207301
p03635
u504715104
1508361429
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
n,m=int,input().split() print((n-1)*(m-1))
s705550722
p03635
u504715104
1508361406
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
n,m=int,input().split() print((n-1)*(m-1))
s011073827
p03635
u306938754
1505616905
Python
Python (2.7.6)
py
Runtime Error
10
2568
304
N = raw_input() N = int(N) s = raw_input() s = s.split(' ') s = [float(x) for x in s] n_list = [0 for i in range(3)] for i in s: for t in range(3): i = i/2 if (i - int(i) != 0): n_list[t] += 1 break if(t == 2): n_list[t] += 1 if(n_list[0] <= n_list[2]): print('Yes') else: print('No')
s155009792
p03635
u306938754
1505616681
Python
Python (2.7.6)
py
Runtime Error
10
2568
301
N = raw_input() N = int(N) s = raw_input() s = s.split(' ') s = [float(x) for x in s] n_list = [] for i in s: for t in range(3): i = i/2 if (i - int(i) != 0): n_list.append(t) break if(t == 2): n_list.append(t) if(n_list.count(0) <= n_list.count(2)): print('Yes') else: print('No')
s933727012
p03635
u010110540
1505416382
Python
Python (3.4.3)
py
Runtime Error
17
3060
314
H, W = map(int, input().split()) N = int(input()) a = list(map(int, input().split())) i = 0 for x in range(H): c = [] for y in range(W): c.append(i + 1) a[i] -= 1 if a[i] == 0: i += 1 if x % 2 == 0: print(*c) else: print(*c[::-1])
s899480757
p03635
u824855219
1504675731
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n = input() m = input() print((n - 1) * (m - 1))
s712947634
p03635
u824855219
1504675688
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
n, m = input().split(' ') print((n - 1) * (m - 1))
s794217097
p03635
u943004959
1504450223
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
def solve(): # 069A - K-City n, m = int(input()) print((m-1) * (n-1)) solve()
s164252227
p03635
u677320550
1503817007
Python
Python (3.4.3)
py
Runtime Error
17
3060
151
a=int(input()) b=int(input()) if a<=b: z=a c=b d=c-z else: z=b c=a d=c-z z=z-1 x=z*z for count in range(d): x=x+z print (x)
s354071143
p03635
u677320550
1503816972
Python
Python (3.4.3)
py
Runtime Error
17
3060
156
a=int(input()) b=int(input()) if a<=b: z=a c=b d=c-z else: z=b c=a d=c-z z=z-1 x=z*z for count in range(d): x=x+z print (x)
s572140143
p03635
u677320550
1503816826
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
a=int(input()) b=int(input()) if a<=b: z=a c=b d=c-z else: z=b c=a d=c-z z=z-1 x=z*z for count in range(d): x=x+z print (x)
s637359816
p03635
u667084803
1503485774
Python
Python (3.4.3)
py
Runtime Error
17
3064
751
from sys import stdin input = stdin.readline def BFS(K,path,N): """リストのリスト道順path,頂点の個数Nが与えられたとき, 頂点Kから各頂点までの距離をlistで返す""" import queue dist=[-1]*N dist[K]=0 que=queue.Queue() que.put(K) while que.qsize(): label=que.get() for i,c in path[label]: if dist[i]==-1: dist[i]=dist[label]+c ...
s014564803
p03635
u165011392
1503286776
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
print( ( int(input()) - 1 ) * ( int(input()) - 1) )
s627641296
p03635
u933416904
1503112041
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
n=input("east_west road:") print(n) m=input("north_south road:") print(m) block =(int(n)-1) * (int(m)-1) print(block)
s388986906
p03635
u933416904
1503111734
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
n=input("east_west road:") m=input("north_south road:") block =(int(n)-1) * (int(m)-1) print(block)
s054694087
p03635
u933416904
1503111648
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
n = input("east_west road:") m =input("north_south road:") block =(int(n)-1) * (int(m)-1) print(block)
s580130234
p03635
u165538494
1502939702
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n=int(input()) m=int(input()) print((n-1)*(m-1))
s847898867
p03635
u124762318
1502843257
Python
Python (3.4.3)
py
Runtime Error
17
3060
273
N = int(input()) al = [int(a) for a in input().split()] a = [ "4" if al[i]%4==0 else "k" if al[i]%2!=0 else "g" for i in range(N)] if a.count("k") == a.count("4"): print("Yes") elif (a.count("k") - 1) == a.count("4") and a.count("g")==0: print("Yes") else: print("No")
s024289556
p03635
u047535298
1502730176
Python
Python (3.4.3)
py
Runtime Error
17
3064
643
if __name__ == '__main__': h, w = map(int, input().split()) n = int(input()) a = list(map(int, input().split())) c = [0] * (h*w) focus = 0 for i in range(n): for j in range(a[i]): c[focus] = i+1 focus += 1 for i in range(h): for j in range(w): ...
s179556309
p03635
u639930462
1502641023
Python
Python (3.4.3)
py
Runtime Error
17
3064
377
H,W = map(int, input().split()) N = int(input()) a = list(map(int, input().split())) i = 0 s = ["" for j in range(H)] for y in range(H): for x in range(W): if x != 0: s[y] = s[y] + " " s[y] = s[y] + str(i+1) a[i] = a[i] - 1 if a[i] == 0: i = i+1 if y%2 == 0 : print(s[...
s351985947
p03635
u178509296
1502578846
Python
Python (3.4.3)
py
Runtime Error
18
2940
45
m,n = int(input().split()) print((m-1)*(n-1))
s245683604
p03635
u485435834
1502498137
Python
Python (3.4.3)
py
Runtime Error
17
3060
475
N = int(input()) a_list = list(map(int, input().split())) two_count = 0 two_sum = 0 four_count = 0 result = 'No' for i in a_list: if i % 2 == 0: two_count += 1 if i % 4 == 0: four_count += 1 if two_count == N: result = 'Yes' elif two_count * 2 + 1 >= N: if (N - two_count) == 1...
s696406721
p03635
u485435834
1502496987
Python
Python (3.4.3)
py
Runtime Error
17
3060
434
N = int(input()) a_list = list(map(int, input().split())) two_count = 0 two_sum = 0 four_count = 0 result = 'No' for i in a_list: if i % 2 == 0: two_count += 1 if i % 4 == 0: four_count += 1 if two_count * 2 + 1 >= N: if (N - two_count) == 1: if four_count == 1: ...
s640792155
p03635
u485435834
1502493919
Python
Python (3.4.3)
py
Runtime Error
17
3060
332
N = int(input()) a_list = list(map(int, input().split())) two_count = 0 two_sum = 0 four_count = 0 result = 'No' for i in a_list: if i % 2 == 0: two_count += 1 if i % 4 == 0: four_count += 1 if two_count * 2 + 1 >= N: if (N - two_count) - 1<= four_count: result = 'Yes' pr...
s014767936
p03635
u796424048
1502480792
Python
Python (3.4.3)
py
Runtime Error
18
2940
147
n = int(input()) S = [] for i in range(n): S.append(input()) ans = set(S[0]) for j in range(1,N): ans = ans & set(S[j]) print(str(ans))
s074761998
p03635
u160414758
1502387103
Python
Python (3.4.3)
py
Runtime Error
17
3064
310
# coding: utf-8 # Here your code ! import math N = input() A = list(map(int, input().split())) f,e,d = 0,0,0 for a in A: x = a % 4 if(x==0): f = f+1 elif(x==2): e = e+1 else: d = d+1 if(e>0): d = d+1 if(d <= math.ceil(len(A)/2)): print("Yes") else: print("No")
s772532160
p03635
u045939752
1502346547
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n,m=map(int,input().split()) printf((n-1)*(m-1))
s254903872
p03635
u301823349
1502338973
Python
Python (2.7.6)
py
Runtime Error
10
2568
477
num = input() list = map(int, raw_input().split()) count1 = 0 count4 = 0 for x in list: if x % 2 == 1: count1 = count1 + 1 if x % 4 == 0: count4 = count4 + 1 if count1 > count4 and num > 3 and count1 + count4 < num: print("No") elif count1 > count4 + 1 and num > 3 and count1 + count4 == num:...
s604645456
p03635
u301823349
1502333990
Python
Python (2.7.6)
py
Runtime Error
10
2568
93
a = int(raw_input()) b,c = map(int, raw_input().split()) s = raw_input() print a+b+c, " ", s
s216152704
p03635
u796424048
1502195612
Python
Python (3.4.3)
py
Runtime Error
16
2940
334
N = int(input()) a = list(map(int,input().split())) one = 0 four = 0 two = 0 for j in range(N): if a[j]%2 == 1: one += 1 elif a[j]%4 == 0: four += 1 else : two +=1 if one =< four: print('Yes') else : if two == 0: if four == one-1: print('Yes') else : print("No") else: ...
s737557427
p03635
u796424048
1502195132
Python
Python (3.4.3)
py
Runtime Error
17
3064
256
N = int(input()) a = list(map(int,input().split())) one = 0 four = 0 two = 0 for j in range(N): if a[j]%2 == 1: one += 1 elif a[j]%4 == 0: four += 1 else : two +=1 print("Yes" if four >= one or (four == one - 1 and two == 0) else "No")
s947138423
p03635
u796424048
1502194450
Python
Python (3.4.3)
py
Runtime Error
17
3188
307
N = int(input()) a = list(map(int,input().split())) one = 0 four = 0 two = 0 for j in range(N): if a[j]%2 == 1: one += 1 elif a[j]%4 == 0: four += 1 else : two +=1 if one <= four: print('Yes') else : if two == 0: if four >= (one+1): print('Yes') else: print('No')
s461939598
p03635
u796424048
1502194365
Python
Python (3.4.3)
py
Runtime Error
17
3064
307
N = int(input()) a = list(map(int,input().split())) one = 0 four = 0 two = 0 for j in range(N): if a[j]%2 == 1: one += 1 elif a[j]%4 == 0: four += 1 else : two +=1 if one <= four: print('Yes') else : if two == 0: if four == (two+1): print('Yes') else: print('No')
s461707652
p03635
u796424048
1502192470
Python
Python (3.4.3)
py
Runtime Error
17
3060
353
N = int(input()) a = list(map(int,input().split())) Kisuu = 0 YonBaisuu = 0 NiBaisuu = 0 for j in range(N): if a[j]%2 == 1: Kisuu += 1 elif a[j]%4 == 0: YonBaisuu += 1 else : NiBaisuu +=1 if Kisuu <= YonBaisuu: print('Yes') else : if NiBaisuu == 0: if YonBaisuu >= (Kisuu+1): print(...
s724505735
p03635
u796424048
1502191553
Python
Python (3.4.3)
py
Runtime Error
17
3060
318
N = int(input()) a = list(map(int,input().split())) Kisuu = 0 YonBaisuu = 0 NiBaisuu = 0 for j in range(N): if a[j]%2 == 1: Kisuu += 1 elif a[j]%4 == 0: YonBaisuu += 1 else : NiBaisuu +=1 if Kisuu <= YonBaisuu: print('Yes') else : if NIBaisuu == 0: print('Yes') else: print('No')
s900455515
p03635
u150117535
1502077586
Python
Python (3.4.3)
py
Runtime Error
17
3064
264
H,W=[int(x) for x in input().split()] N=int(input()) a=[int(x) for x in input().split()] s="" for i in range(N): s=s+str(i+1)*a[i] for l in range(H): if l%2==0: print(" ".join(s[W*l:W*(l+1)])) else: print(" ".join(s[W*l:W*(l+1)][::-1]))
s262453810
p03635
u150117535
1502074474
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38640
47
input(sum([int(x)-1 for x in input().split()]))
s438628378
p03635
u673557555
1502073134
Python
Python (2.7.6)
py
Runtime Error
10
2692
457
n = int(raw_input()) a = map(int,raw_input().split()) a = sorted(a) def gcd(a,b): while b!=0: t = b b=a%b a=t return a i,j=0,0 good=True while i<n-1: if (a[i]*a[i+1]) % 4 != 0: j = i+1 while j<n-1 and gcd(a[i],a[j]) % 4 != 0: j+=1 (a[i+1],a[j]) =...
s976188449
p03635
u792547805
1502071625
Python
Python (3.4.3)
py
Runtime Error
18
3064
591
l = input().split() H = int(l[0]) W = int(l[1]) N = int(input()) c= [[0 for i in range(W)] for j in range(H)] color_num = [int(i) for i in input().split()] row = 0 column = 0 for i in range(N): index = color_num[i] for j in range(0, index): c[row][column] = i+1 if column % (W-1) == 0 and col...
s054143905
p03635
u642905089
1502071166
Python
Python (3.4.3)
py
Runtime Error
17
3064
390
n = input() nStr = input().split() number = list(map(int,nStr)) frby = 1 twby = -1 for i in number: if i % 4 == 0: frby += 2 elif i % 2 == 0: twby += 1 if int(n) == 1 and frby == 3: print("Yes") elif int(n) == (twby + 1): print("Yes") elif int(n) <= (frby): print("Yes") ...