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
s541447073
p03636
u324549724
1563977806
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
s = input() print(f'{s[0]}{s.len()-2}{s[-1]}')
s668790935
p03636
u979078704
1562910097
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a, *b, c = input() print(a + str(len(b) + c)
s862012811
p03636
u668503853
1562452786
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
s=input() a=s[0] b=s[-1] m=len(s)-2 print(a+m+b)
s730664768
p03636
u292735000
1562257243
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
s = input() print(s[0] + str(len(s) + s[-1])
s016142077
p03636
u003501233
1562251570
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
s=input() n=len(s) print(s[0]+str[n-2]+s[n-1])
s023991858
p03636
u862296914
1562158985
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
n = sorted(list(map(int,input().split()))) print(int(n[0]*n[1]/2))
s107243328
p03636
u874549552
1561821844
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
s = input() print(s[0]+ len(s)-2 + s[len(s-1)])
s580138182
p03636
u663014688
1560384821
Python
Python (3.4.3)
py
Runtime Error
18
3060
129
S = input() cnt = 0 S = list(S) S_t = S[0] S.pop(0) S_b = S[-1] S.pop(-1) for i in range(S): cnt += 1 print(S_t + cnt + S_b)
s551625268
p03636
u584529823
1560031163
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
s = input() print(s[0] + len(s[1:len(s) - 1]) + s[len(s) - 1]
s150863483
p03636
u105210954
1559965464
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = input() print(s[0] + len(s[:-2]) + s[-1])
s387619893
p03636
u026155812
1559960411
Python
Python (3.4.3)
py
Runtime Error
17
2940
41
s = input() print(s[0]+str(len(s)+s[-1]))
s519011126
p03636
u864453204
1559535841
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
s = list(input()) f = s[0] e = s[-1] s.pop(0).pop(-1) l = len(s) print("".join([f, str(l), e]))
s607916222
p03636
u816919571
1559245908
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
a,*b,c=list(input().split()) print(a+str(len(b))+c)
s857654095
p03636
u399721252
1559084280
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
s = input() print(s[0]+ str(len(s-2)) +s[-1])
s412098255
p03636
u223646582
1559054088
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
s=input() print(s[0]+(len(s)-2)+s[-1])
s671138309
p03636
u223646582
1559054064
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
s=input() print(s[0]+len(s)-2+s[-1])
s989071824
p03636
u167681750
1558241639
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
s = input() print(s[0] + str(len(s) - 2) + s[-1]))
s340148274
p03636
u055941944
1556946401
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
s=input() x=s[0],len(s)-2,s[-1] print(x.gsub(" ",""))
s111403535
p03636
u166621202
1556803979
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
a = input() print([:1]+str(len(a)-2)+[-1:])
s498058137
p03636
u166621202
1556803893
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
a = input() print([:1]+(len(a)-2)+[-1:])
s362533487
p03636
u041075929
1556564564
Python
Python (3.4.3)
py
Runtime Error
17
2940
210
import sys, os f = lambda:list(map(int,input().split())) if 'local' in os.environ : sys.stdin = open('./input.txt', 'r') def solve(): s = input().strip() print(s[0]+ str(lne(s)-2)+s[-1]) solve()
s849438818
p03636
u976871772
1555344188
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
#coding:UTF-8 s = input() print(s[0] + (len(s)-2) + s[-1])
s570771939
p03636
u163320134
1555246610
Python
Python (3.4.3)
py
Runtime Error
18
2940
40
s=input() print(s[0]+str(len(s)-2)+s[-1]
s853329071
p03636
u268516119
1555194559
Python
Python (3.4.3)
py
Runtime Error
18
2940
43
s=input() print(f"{s[0]}{len(s)-2}{s[-1]}")
s569198498
p03636
u610473220
1555189830
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
S = input() S0 = S[0] S1 = len(S) - 2 S2 = S[-1] print(S0+S1+S2)
s669123652
p03636
u588081069
1554844046
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
s = str(input()) print("{}{}{}".format(s[0], len(s) - 2), s[-1])
s128707680
p03636
u542932305
1554266681
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
input=sys.stdin.readline S = input() size = len(S) print(S[:1] + str(len(S[2:size])) + S[size-1:])
s258004994
p03636
u100800700
1553713995
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
S = input() print(S[0] + string(len(S)-2) + S[len(S)-1])
s196110587
p03636
u227082700
1553626355
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
n=int(input()) i=0 while 1: if 2**i>n:break i+=1 print(2**(i-1))
s025895002
p03636
u227082700
1553626014
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
import math n=int(input());print(round(2**(math.log(n,2)//1)))
s219535211
p03636
u423585790
1553220131
Python
Python (3.4.3)
py
Runtime Error
25
3700
1263
#!usr/bin/env python3 from collections import defaultdict from collections import deque from heapq import heappush, heappop import sys import math import bisect import random import itertools sys.setrecursionlimit(10**5) stdin = sys.stdin def LI(): return list(map(int, stdin.readline().split())) def LF(): return list(m...
s146895614
p03636
u358791207
1552630470
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
s = input() s = s[0] + len(s[1:-1]) + s[-1] print(s)
s529378875
p03636
u309834353
1551806251
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
s = input() print(s[0] + len(s[1:-1]) + s[-1:])
s624467847
p03636
u314238753
1551493179
Python
Python (3.4.3)
py
Runtime Error
18
2940
53
S=input() f=S[0] l=S[-1] m=len(S)-2 print(str(f+m+l))
s197091453
p03636
u888610038
1551412459
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38640
62
a,b=map(int,input().split()) print(a+b if a+b<10 else "error")
s569793325
p03636
u933214067
1551277702
Python
Python (3.4.3)
py
Runtime Error
18
3188
1102
from statistics import mean, median,variance,stdev import numpy as np import sys import math import fractions import itertools def j(q): if q==1: print("Yes") else:print("No") exit(0) def ct(x,y): if (x>y):print("") elif (x<y): print("") else: print("") def ip(): return int(input()) #n ...
s385768070
p03636
u044746696
1551274072
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
a,*List,b=input() print(a+len(List)+b)
s754619773
p03636
u977349332
1551082386
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
n = input() print(n[0] + str(len(s) + n[len(s)-2]))
s067696755
p03636
u977349332
1551043501
Python
Python (3.4.3)
py
Runtime Error
18
2940
59
s = input() N = s.len(s) print(s[0] + str(N - 2) + s[N - 1]
s600128237
p03636
u392029857
1551029501
Python
Python (3.4.3)
py
Runtime Error
18
2940
46
s = input() print(s[0] + (len(s) - 2) + s[-1])
s413678779
p03636
u652081898
1550893930
Python
Python (3.4.3)
py
Runtime Error
19
3060
59
s = input() length = len(s) print(s[0] + str(n-2) + s[-1])
s573845695
p03636
u518064858
1550892539
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
s=input() a=s[0] z=s[-1] s=[1:-1] print(a+str(len(s))+z)
s226085329
p03636
u367130284
1550571492
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
s=list(input()) print(s[0]+str(len(s-2))+s[-1])
s794379199
p03636
u133038626
1548992326
Python
Python (3.4.3)
py
Runtime Error
18
2940
38
s=input() print(s[0]+(len(s)-2)+s[-1])
s077924993
p03636
u439392790
1548094497
Python
Python (3.4.3)
py
Runtime Error
18
3064
52
s=input() print(s[0]) print(len(s)-2) print(s[s-1])
s618558586
p03636
u538381753
1546969308
Python
Python (3.4.3)
py
Runtime Error
18
2940
49
s = input() print(s[0]+str(len(s[1:-1]))+s[-1])
s241658710
p03636
u371467115
1546493489
Python
Python (3.4.3)
py
Runtime Error
18
2940
73
s=input() s_0=s.append(0) s_n=s.append(len(s)) print(s_0+str(len(s))+s_n)
s374647945
p03636
u928784113
1544937043
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
# -*- coding: utf-8 -*- S = str(input()) T,U = S[0],S[-1] print(S[0]+len(S[1:-2])+S[-1])
s691491905
p03636
u669382434
1544907170
Python
Python (3.4.3)
py
Runtime Error
18
2940
41
s=input() print(s[0]+str(len(s-2))+s[-1])
s672040593
p03636
u669382434
1544907118
Python
Python (3.4.3)
py
Runtime Error
18
2940
41
s=input() print(s[0]+int(len(s-2))+s[-1])
s598448468
p03636
u669382434
1544907076
Python
Python (3.4.3)
py
Runtime Error
18
2940
41
s=input() print(s[0]+int(len(s-2))+s[-1])
s003034824
p03636
u272557899
1542819924
Python
Python (3.4.3)
py
Runtime Error
17
2940
196
s = input() t = "" count += 0 for i in range(len(s)): if i == 0: t += s[i] elif i == len(s) - 1: t += s[i] else: count += 1 if i == len(s) - 2: t += str(count) print(t)
s260136024
p03636
u637824361
1542251714
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
S = input() l = S.__len__() print('%s%s%s' % [S[0], l-2, S[l-1]]
s944478341
p03636
u462214100
1537548823
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
s = input() c = s.count() print(s[0:1] + str(c) + s[-1:])
s661543514
p03636
u462214100
1537548708
Python
Python (3.4.3)
py
Runtime Error
17
3060
61
s = input() c = s.count() print(s[1:1] + str(c) + s[-1:1])
s223351278
p03636
u636137609
1535467197
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
S = raw_input() length = len(S) print '{0}{1}{2}'.format(S[0], length-2, S[length-1])
s552699188
p03636
u409064224
1532624496
Python
Python (3.4.3)
py
Runtime Error
18
3060
71
str = input() res = str[0:1] + str(len(str)-2) +str[0:1:-1] print(res)
s583196589
p03636
u717001163
1532005302
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
s=input() print(s[0] + str(len(s-2))+ s[-1])
s286034113
p03636
u879761680
1530220956
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
a = input() print(a[0]+len(a)-2+a[-1])
s719559650
p03636
u095969144
1530161206
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = input() print(s[0] + ( len(s)-2) + s[-1])
s820302644
p03636
u095969144
1530161116
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = input() print(s(0) + ( len(s)-2) + s(-1))
s737417886
p03636
u140251125
1529683117
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
# input s = input() ans = s[0] + str(len(s) - 2) + s[len(str) - 1] print(ans)
s546823361
p03636
u411858517
1529085959
Python
Python (3.4.3)
py
Runtime Error
18
2940
48
S = input() print(S[0] + str(len(S-2)) + S[-1])
s862503374
p03636
u411858517
1529085896
Python
Python (3.4.3)
py
Runtime Error
18
2940
41
S = input() print(S[0] + len(S) + S[-1])
s162573034
p03636
u352706022
1528875852
Python
Python (3.4.3)
py
Runtime Error
18
2940
46
s = input() print(s[0] + len(s[1:-1]) + s[-1])
s758674604
p03636
u964998676
1526332333
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
str = input('') start = str[:1] end = str[-1:] print(start + (len(str) - 2) + end)
s204408474
p03636
u766407523
1523415132
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
s = input() print(a[0]+str(len(s)-2)+a[-1])
s845173361
p03636
u749483542
1516206511
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
# -*- coding: utf8 -*- s = input() if s => 3: if s <= 100: print(s[0],len(s)-2,s[-1])
s673229959
p03636
u597180527
1514240286
Python
Python (3.4.3)
py
Runtime Error
18
2940
35
print(head + str(len(mid)) + tail)
s151036541
p03636
u787988531
1513971318
Python
Python (2.7.6)
py
Runtime Error
10
2568
58
str = raw_input() print str[0] + str(len(str)-2) + str[-1]
s331222931
p03636
u257974487
1513119169
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
a = input() b = len(a) print(a[0] + str(b) + a[b])
s386157585
p03636
u858136677
1506190256
Python
Python (3.4.3)
py
Runtime Error
25
2940
50
s = input() a = len(s) print(s[0] + (a-2) + s[-1])
s762095060
p03636
u343437894
1502462980
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
s = input() n=len(s) print(s[0] + n + s[-1])
s427231403
p03636
u796424048
1502458857
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
S = input() print(S[:1] + str(len(S}-2) + S[-1:])
s471087600
p03636
u160414758
1502387169
Python
Python (3.4.3)
py
Runtime Error
17
3064
275
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")
s617210615
p03636
u952708174
1502068788
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
string=input() first=string[0] last=string[len(string)-1] mid=str(len(string[1:len(string-1)])) print(first+mid+last)
s288557724
p03636
u315857144
1502067778
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
s = input() l = len(s) print(s[0] + str(l-2) + s s[-1])
s707024018
p03637
u889405092
1601275513
Python
Python (3.8.2)
py
Runtime Error
26
8976
179
N=input() A=input() a=0 b=0 c=0 for i in range(0,N,1) if A[i]%4==0: a=a+1 else: if A[i]%2==1: b=b+1 else: c=c+1 else: print("Yes" if a>=b else "No")
s570636490
p03637
u017050982
1597873277
Python
PyPy3 (7.3.0)
py
Runtime Error
102
74560
321
N = int(input()) a = list(map(int,input().rstrip().split(" "))) counter = [0,0,0] for i in a: if i % 4 == 0: counter[2] += 1 elif i % 2 == 0: counter[1] += 1 else: counter[0] += 1 counter[0] += min(1,counter[1]) if counter[2] += 1 >= counter[0]: print("Yes") else: print("No"...
s372447396
p03637
u017050982
1597873247
Python
PyPy3 (7.3.0)
py
Runtime Error
100
74600
326
N = int(input()) a = list(map(int,input().rstrip().split(" "))) counter = [0,0,0] for i in a: if i % 4 == 0: counter[2] += 1 elif i % 2 == 0: counter[1] += 1 else: counter[0] += 1 counter[0] += min(1,counter[1] += 1) if counter[2] += 1 >= counter[0]: print("Yes") else: print...
s663899802
p03637
u017050982
1597872175
Python
PyPy3 (7.3.0)
py
Runtime Error
89
84684
420
N = int(input()) a = list(map(int,input().rstrip().split(" "))) counter = [0,0,0] for i in a: if i % 4 == 0: counter[2] += 1 elif i % 2 == 0: counter[1] += 1 else: counter[0] += 1 if counter[1] == 1: counter[1] = 0 counter[0] += 1 if(counter[2] != 0): p += 1 p = ...
s026541340
p03637
u209275335
1597460471
Python
Python (3.8.2)
py
Runtime Error
26
8956
353
n = int(input()) li = list(map(int,input().split())) lis = [] x = 0 y = 0 z = 0 for i in range(n): if li[i] % 4 == 0: x += 1 elif li[i] % 2 == 0: y = 1 else: z += 1 if y = 0: if x >= y + 1: print("Yes") else: print("No") else: if x >= y: print("Yes...
s276286238
p03637
u096294926
1597286380
Python
PyPy3 (7.3.0)
py
Runtime Error
113
98288
346
import math N = int(input()) A = list(map(int,input().split())) l = list() ll = list() for i in range(len(A)): if A[i]%4 == 0: l.append(A[i]) if A[i]%2 == 0: ll.append(A[i]) four = len(l) two = len(ll)-four zero = N-two a = math.floor(N/2) if a <= four and b == 0: print("Yes") elif a-two <= four: print(...
s653641900
p03637
u156815136
1597274789
Python
Python (3.8.2)
py
Runtime Error
73
21508
955
#from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations,permutations,accumulate, product # (string,3) 3回 #from collections import deque from collections import deque,defaultdict,Cou...
s017223142
p03637
u513081876
1595129042
Python
Python (3.8.2)
py
Runtime Error
24
8908
247
N = int(input()) a = [int(i) for i input().split()] ki = 0 gu_2 = 0 gu_4 = 0 for i in a: if i % 4 == 0: gu_4 += 1 elif i % 2 == 0: gu_2 += 1 else: ki += 1 if ki <= gu_4: print('Yes') else: print('No')
s991612744
p03637
u634079249
1594352261
Python
Python (3.8.2)
py
Runtime Error
87
19728
1178
import sys, os, math, bisect, itertools, collections, heapq, queue # from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall from decimal import Decimal from collections import defaultdict, deque sys.setrecursionlimit(10000000) ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(i...
s760134083
p03637
u750651325
1592779181
Python
Python (3.8.2)
py
Runtime Error
62
20072
367
N = int(input()) a = list(map(int, input().split())) even4, even, odd = 0, 0, 0 for i in a: if i % 4 == 0: even4 += 1 elif i % 2 == 0: even += 1 else: odd += 1 if n % 2 == 0: if even4 >= odd: print("Yes") else: print("No") else: if even4 >= odd + 1: ...
s979151472
p03637
u750651325
1592779156
Python
Python (3.8.2)
py
Runtime Error
27
8896
368
N = int(input()) a = list(map(int, input().split())) even4, ,even, odd = 0, 0, 0 for i in a: if i % 4 == 0: even4 += 1 elif i % 2 == 0: even += 1 else: odd += 1 if n % 2 == 0: if even4 >= odd: print("Yes") else: print("No") else: if even4 >= odd + 1: ...
s571950555
p03637
u350093546
1592762190
Python
Python (3.8.2)
py
Runtime Error
48
20032
265
n=int(input()) a=list(map(int,input().split())) a,b,c=0,0,0 ans='No' for i in a: if a%4==0: a+=1 elif a%2==0: b+=1 else: c+=1 if n%2==1: if c-a==1: if b==0: ans='Yes' elif a>=c: ans='Yes' else: if a>=c: ans='Yes' print(ans)
s342573567
p03637
u013513417
1592143788
Python
Python (3.4.3)
py
Runtime Error
73
14252
490
N=int(input()) S=list(map(int,input().split())) div1=0 div2=0 div4=0 lenS=len(S) for i in range(N): if S[i]%4==0: div4+=1 elif S[i]%2==0: div2+=1 else: div1+=1 if lenS%2==0: if div4*2+div2>=lenS: print("Yes") exit() else: print("No") exit(...
s141013123
p03637
u342869120
1592021942
Python
PyPy3 (2.4.0)
py
Runtime Error
233
62832
375
N = int(input()) *a, = map(int, input().split()) two, four, no = [], [], [] for i in range(N): if a[i] % 4 == 0: four += 1 elif a[i] % 2 == 0: two += 1 else: no += 1 ok = (two >= max(0, (N-4)) and four >= 2) or four >= N//2 ok = ok and ((four-no) >= 2 or ((four+no) == N and (no-four...
s900124203
p03637
u503111914
1591227353
Python
Python (3.4.3)
py
Runtime Error
17
2940
393
N = int(input()) A = list(map(int,input().split())) for i in range(N): A[i] = A[i] % 4 if A.count(2) % 2 == 0: if A.count(4) >= (A.count(1)+A.count(3)): print("Yes") else: print("No") else: if A.count(4) >= (A.count(1)+A.count(3)) + 1: print("Yes") else: ...
s242096888
p03637
u697658632
1590472522
Python
Python (3.4.3)
py
Runtime Error
41
15020
222
n = int(input()) a = list(map(int, input().split())) a0, a1, a2 = 0, 0, 0 for i in a: if a % 2 == 1: a0 += 1 elif a % 4 == 2: a1 = 1 else: a2 += 1 if a0 + a1 <= a2 + 1: print('Yes') else: print('No')
s037549683
p03637
u227085629
1589896732
Python
Python (3.4.3)
py
Runtime Error
241
14252
256
n = int(input()) a = list(map(int,input().split())) odd = 0 even4 = 0 for num in a: if num%2 == 1: odd += 1 elif num%4 == 0: even4 += 1 if odd + even4 == n and even >= odd-1: print('Yes') elif even4 >= odd1: print('Yes') else: print('No')
s853726948
p03637
u127499732
1589422099
Python
Python (3.4.3)
py
Runtime Error
64
14052
342
def main(): n, *a = map(int, open(0).read().split()) o = sum([i % 2 == 1 for i in a]) p = sum([i % 4 == 0 for i in a]) q = sum([i % q == 0 for i in a]) - p if p + 1 >= o and not q: print("Yes") elif p >= 0 and q: print("Yes") else: print("No") if __name__ == '...
s567430135
p03637
u017415492
1588656337
Python
Python (3.4.3)
py
Runtime Error
17
2940
292
n=int(input()) a=list(map(int,input().split())) count4=0 count2=0 for i in a: if i%4==0: count4+=1 elif i%2==0: count2+=1 if count2==1: count1=len(a)-count4 else: count1=len(a)-count4-count2 if len(a)==1 and a[0]==2: elif count1-count4<=1: print("Yes") else: print("No")
s140730934
p03637
u898058223
1588536141
Python
Python (3.4.3)
py
Runtime Error
18
3060
268
cnt_4=0 for i in range(n): if a[i]%2!=0: cnt_odd+=1 else: cnt_even+=1 if a[i]%4==0: cnt_4+=1 if cnt_even-cnt_4==0: if cnt_4+1>=cnt_odd: print("Yes") else: print("No") else: if cnt_4>=cnt_odd: print("Yes") else: print("No")
s546470903
p03637
u816631826
1588527685
Python
Python (3.4.3)
py
Runtime Error
63
15020
299
N = int(input()) nums = list(map(int, input().split())) d4 = 0 d2 = 0 d0 = 0 for n in nums: if n % 4 == 0: d4 += 1 elif n % 2== 0: d2 += 1 else: d0 += 1 if d2 > 0 and d1 <= d2: print('Yes') elif d2 == 0 and d1 <= d4+1: print('Yes') else: print('No')
s009943343
p03637
u430771494
1588104517
Python
Python (3.4.3)
py
Runtime Error
17
3060
381
N=int(input()) a=list(map(int,input().split())) b4=[x for x in a if x%4==0] a4=[x for x in a if x%4!=0] b2=[x for x in a4 if x%2==0] c=[x for x in a4 if x%2!=0] if len(b4)==0 and (len(c)==0 and len(b2)>1): print('Yes') elif len(b4)==0 and len(c)!=0 print('No') elif len(b4)+1<len(c): print('No') elif len(b4)...
s582184891
p03637
u230717961
1587775460
Python
Python (3.4.3)
py
Runtime Error
17
2940
352
def slove(n, k): a_list = [int(i) for i in k.split()] num = len([i for i in a_list if i % 4 == 0]) tmp = [i for i in a_list if i % 4 != 0] num2 = tmp.count(2) // 2 return "Yes" if (num + num2)>= n // 2 else "No" if __name__ == "__main__": input = sys.stdin.readline n = int(input()) k =...