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
s225626402
p03479
u073775598
1539525904
Python
Python (3.4.3)
py
Runtime Error
17
3060
181
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y<=576460752303423488 and Y>=576460752303420000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s919011964
p03479
u073775598
1539525759
Python
Python (3.4.3)
py
Runtime Error
17
3060
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576460752303423488: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s563039455
p03479
u073775598
1539525652
Python
Python (3.4.3)
py
Runtime Error
17
3060
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576475000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s790073174
p03479
u073775598
1539525612
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576480000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s339313378
p03479
u073775598
1539525585
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576460000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s872958148
p03479
u073775598
1539525539
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576490000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s139504975
p03479
u073775598
1539525513
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576400000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s702279495
p03479
u073775598
1539525455
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576300000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s022796253
p03479
u073775598
1539525417
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576200000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s350644387
p03479
u073775598
1539525393
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576500000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s361127214
p03479
u073775598
1539525344
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=576000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s262027730
p03479
u073775598
1539525317
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=577000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s061233667
p03479
u073775598
1539525282
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=578000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s418273445
p03479
u073775598
1539524656
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=580000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s243623050
p03479
u073775598
1539524615
Python
Python (3.4.3)
py
Runtime Error
17
3060
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=590000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s117811795
p03479
u073775598
1539524532
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=575000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s823339442
p03479
u073775598
1539524328
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=550000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s424258537
p03479
u073775598
1539524284
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=600000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s037787129
p03479
u073775598
1539524263
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=700000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s061028977
p03479
u073775598
1539524138
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=800000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s302389029
p03479
u073775598
1539523986
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=500000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s194771831
p03479
u073775598
1539523813
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=200000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s344843500
p03479
u073775598
1539523759
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=100000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s434626530
p03479
u073775598
1539523187
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>=1000000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s575543481
p03479
u073775598
1539523153
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>900000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s124578362
p03479
u073775598
1539523006
Python
Python (3.4.3)
py
Runtime Error
17
3064
154
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>800000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s718356196
p03479
u073775598
1539522937
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>500000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s764455702
p03479
u073775598
1539522874
Python
Python (3.4.3)
py
Runtime Error
19
2940
154
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>100000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s732863242
p03479
u073775598
1539522415
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>10000000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s763508336
p03479
u073775598
1539522243
Python
Python (3.4.3)
py
Runtime Error
17
3060
151
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>100000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s043197796
p03479
u073775598
1539521952
Python
Python (3.4.3)
py
Runtime Error
17
2940
149
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>1000000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s099073257
p03479
u073775598
1539521815
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>10000000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s102348109
p03479
u073775598
1539521724
Python
Python (3.4.3)
py
Runtime Error
17
3060
145
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y>100000000: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s782143308
p03479
u073775598
1539521678
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y==1: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s382377748
p03479
u073775598
1539521642
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s777615008
p03479
u659640418
1534368091
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
import math x, y = map(int, input().split()) print(round(log2(float(y/x))))
s456714651
p03479
u659640418
1534368048
Python
Python (3.4.3)
py
Runtime Error
17
3064
68
import math x, y = map(int, input().split()) print(round(log2(y/x)))
s003278915
p03479
u345076485
1531243084
Python
Python (3.4.3)
py
Runtime Error
18
3064
81
X, Y = map(int,input().split()) i = 1 while X < Y: X * 2 i += 1 print(i)
s985240138
p03479
u001024152
1530115968
Python
Python (3.4.3)
py
Runtime Error
17
2940
183
x,y = map(int, input().split()) a = x # A[i] for i in range(1,y): if (i==1 and a<=y) or a*2 <= y: a *= 2 # A[i+1] continue else: break print(i)
s074157277
p03479
u594859393
1529629007
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
from itertools import count, takewhile x, y = map(int, input().split()) print(max(takewhile(lambda i: (x*(2**i) <= y, count())))
s723896181
p03479
u314057689
1529276064
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38768
221
#!/usr/bin/env python # -*- coding: utf-8 -*- import math def solve(): x,y = map(int, input().split()) print(int(math.log2(y/x))+1) if __name__ == "__main__":# {{{ solve() # vim: set foldmethod=marker:}}}
s891735045
p03479
u314057689
1529275783
Python
PyPy3 (2.4.0)
py
Runtime Error
413
101868
1488
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys # {{{ import os import time import re from pydoc import help import string import math from operator import itemgetter from collections import Counter from collections import deque from collections import defaultdict as dd import fractions from heapq import hea...
s845496423
p03479
u314057689
1529275674
Python
PyPy3 (2.4.0)
py
Runtime Error
469
105196
1544
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys # {{{ import os import time import re from pydoc import help import string import math from operator import itemgetter from collections import Counter from collections import deque from collections import defaultdict as dd import fractions from heapq import hea...
s080931516
p03479
u583010173
1524845708
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
x, y = [int(x) for x in input().split()] size = int.bit_length(y/x) if x == y: print(0) else: print(size)
s299723842
p03479
u391875425
1524628245
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
import math x, y = map(int,input().split()) print(int(math.log2(y/x,2))+1)
s015141106
p03479
u103539599
1521059441
Python
Python (3.4.3)
py
Runtime Error
18
2940
109
X,Y=map(int,input().split()) t=X for i in range(1,X*Y): if t*2>Y: break else: t*=2 print(i)
s176260417
p03479
u439176910
1520982417
Python
Python (3.4.3)
py
Runtime Error
18
2940
137
X, Y = [int(item) for item in input().rstrip.split(" ")] ans = 1 while(1): if X < Y: ans+=1 X *=2 else: break print(ans)
s074957909
p03479
u439176910
1520982380
Python
Python (3.4.3)
py
Runtime Error
18
2940
137
X, Y = [int(item) for item in input().rstrip.split(" ")] ans = 0 while(1): if X < Y: ans+=1 X *=2 else: break print(ans)
s371768969
p03479
u466331465
1519765421
Python
Python (3.4.3)
py
Runtime Error
17
2940
212
import numpy as np from collections import Counter import collections round = lambda x:(x*2+1)//2 a = list(map(float,input().split())) a = np.array(a) X = a[0] Y = a[1] i = 0 while(X=<Y): X * = 2 i++ print(i)
s648754349
p03479
u803647747
1519199594
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
imput_list = list(map(int,input().split())) a = imput_list[1]/imput_list[0] print(math.floor(math.log2(a)) + 1)
s631730148
p03479
u803647747
1519199374
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
imput_list = list(map(int,input().split())) print(math.floor(math.log(imput_list[1]/imput_list[0], 2)) + 1)
s871969712
p03479
u882964948
1518090521
Python
Python (3.4.3)
py
Runtime Error
17
2940
324
#include <iostream> #include <stdio.h> #include <string> #include <vector> #include <array> #include <algorithm> using namespace std; long x, y; long ans = 0; int solve() { cin >> x >> y; for(long i = x; i <= y; i *= 2) { ans++; } cout << ans << endl; } int main(void) { solve(); return 0...
s820264346
p03479
u819688111
1516107978
Python
Python (3.4.3)
py
Runtime Error
17
2940
272
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for(int i=0; (i) < int(n); ++(i)) int main(void){ ll X, Y; cin >> X >> Y; ll buf=X; rep(i, Y){ buf = buf*2; if(buf>Y){ cout << i+1 << endl; break; } } return 0; }
s762926578
p03479
u217574754
1515126388
Python
Python (3.4.3)
py
Runtime Error
18
2940
104
# input x, y = map(int, input().split()) # main c = 0 while x <= y: x *= 2 c += 1 print(count)
s389169670
p03479
u785205215
1514986835
Python
Python (3.4.3)
py
Runtime Error
19
3188
899
import math import itertools import heapq from sys import stdin, stdout, setrecursionlimit from bisect import bisect, bisect_left, bisect_right from collections import defaultdict, deque # d = defaultdict(lambda: 0) # setrecursionlimit(10**7) # inf = float("inf") ##### stdin #### def LM(t, r): return list(map(t, r)...
s707420846
p03479
u943004959
1514706785
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
def solve(): x, y = LI() ans = 0 while x <= y: ans += 1 x *= 2 print(ans) solve()
s687304970
p03479
u635391905
1514086795
Python
Python (3.4.3)
py
Runtime Error
17
3060
388
import sys if __name__ =="__main__": str_in = input() num = [int(n) for n in str_in.split()] X,Y=num if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq>Y: br...
s868001300
p03479
u635391905
1514086302
Python
Python (3.4.3)
py
Runtime Error
17
3060
404
##3 # -*- coding: utf-8 -*- import sys if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq>Y: ...
s947647800
p03479
u635391905
1514086256
Python
Python (3.4.3)
py
Runtime Error
18
3064
367
import sys if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*3 if suq>Y: break ...
s727889737
p03479
u635391905
1514086158
Python
Python (3.4.3)
py
Runtime Error
17
3064
356
if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq>Y: break else: ...
s556475428
p03479
u635391905
1514086123
Python
Python (3.4.3)
py
Runtime Error
17
3060
404
##3 # -*- coding: utf-8 -*- import sys if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq>Y: ...
s305357519
p03479
u565904667
1514086107
Python
Python (2.7.6)
py
Runtime Error
10
2568
185
#include<iostream> #include<algorithm> #include<cmath> using namespace std; long long n,a,b,c; int main() { cin>>a>>b; double ans=(log((double) b/a))/log(2.0); cout<< floor(ans)+1; }
s403476085
p03479
u635391905
1514086089
Python
Python (3.4.3)
py
Runtime Error
17
3064
401
# -*- coding: utf-8 -*- import sys if __name__ =="__main__": str_in = input() out=0 X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq...
s233599046
p03479
u635391905
1514085832
Python
Python (3.4.3)
py
Runtime Error
17
3064
367
import sys if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X out=1 while(suq<=Y): suq=suq*2 if suq>Y: break ...
s689068140
p03479
u635391905
1514085612
Python
Python (3.4.3)
py
Runtime Error
19
3064
400
import sys if __name__ =="__main__": str_in = input() X,Y = [int(n) for n in str_in.split()] out=0 if X<0 or X>(10**18) or Y<0 or B>(10**18) or X>Y: print("error input!") else: suq=X #print("yes") out+=1 while(suq<=Y): suq=suq*2 if suq>...
s565653277
p03479
u907511219
1514085343
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
x, y = map(int, input().split()) c = 2 z = 1 if(x > 1): c = x; while(c*2 <= y): c *= 2; z += 1; print(z)
s844931473
p03479
u445624660
1514082185
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
x, y = map(in t, input().split()) ans = 0 if x>y else 1 while x*2<=y: ans+=1 x=x*2 print(ans)
s804500287
p03480
u074220993
1600232136
Python
Python (3.8.2)
py
Runtime Error
55
9776
320
def main(): S = input() + '.' count = 0 data = [] for i, s in enumerate(S[1:]): count += 1 if s != S[i]: data.append(count) count = 0 data.append(0) ans = max([min(data[i-1]+data[i], data[i]+data[i+1]) for i in range(1,len(data)-1)]) print(ans) main()
s975919936
p03480
u074220993
1598760595
Python
Python (3.8.2)
py
Runtime Error
32
9760
171
S = list(input()) lenS = len(S) front = S.index('0' if S[0] == '1' else '1') S.reverse() end = S.index('0' if S[0] == '1' else '1') ans = lenS - min(front, end) print(ans)
s147690157
p03480
u595952233
1596889159
Python
Python (3.8.2)
py
Runtime Error
40
10440
145
s = list(map(int, list(input()))) ans = n for i in range(len(s)-1): if s[i]!=s[i+1]: ans = min(ans, max(i+1, len(s)-i-1)) print(ans)
s640392987
p03480
u869790980
1596544914
Python
PyPy2 (7.3.0)
py
Runtime Error
439
106580
597
import collections s = raw_input() #100000000 stack = [] for l in s: if len(stack) == 0 or stack[-1][0] != l: stack.append([l, 1]) else: stack[-1][1] += 1 def f(s): if len(s) == 1: return s[0] if len(s) == 2: return max(s) m = max([s[i] + s[i + 1] for i in range(len(s)-1)]) for i in range(len(s)-1): if s...
s764455605
p03480
u869790980
1596543920
Python
PyPy2 (7.3.0)
py
Runtime Error
1327
1303312
549
s = raw_input() #100000000 stack = [] for l in s: if len(stack) == 0 or stack[-1][0] != l: stack.append([l, 1]) else: stack[-1][1] += 1 def f(s): if len(s) == 1: return s[0] if len(s) == 2: return max(s) m = 0 for i in range(len(s)-1): m = max(m ,s[i] + s[i+1]) r = +float('inf') for i in range(0,l...
s677655317
p03480
u798316285
1595995563
Python
Python (3.8.2)
py
Runtime Error
26
8980
421
S=input() l=len(S) if l%2==1: m=S[l//2] c=1 for i in range l//2: if S[l//2-i-1]==m and S[l//2+i+1]==m: c+=2 else: break ans=c+(l-c)//2 else: m1=S[l//2-1] m2=S[l//2] c=0 if m1==m2: c=2 for i in range l//2-1: if S[l//2-i-2]==m...
s427676420
p03480
u819135704
1592618565
Python
Python (3.8.2)
py
Runtime Error
29
9136
120
S = input() a = n n = len(S) for i in range(n-1): if S[i] != S[i+1]: a = min(a, max(i+1, n-i+1)) print(a)
s772826619
p03480
u519923151
1592000251
Python
Python (3.4.3)
py
Runtime Error
49
4724
531
s = input() sl = list(s) sl.append("2") n = len(sl) res=[] temp =1 for i in range(n-1): if sl[i+1] == sl[i]: temp +=1 else: res.append(temp) temp = 1 resu = n-1 while len(res) >1: resu = min(resu,max(res[0],res[1:])) x = res.pop(1) res[0] = res[0]+x """ if res[...
s912650516
p03480
u714642969
1589555883
Python
PyPy3 (2.4.0)
py
Runtime Error
192
49552
1264
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): S=list(map(int,list(input()))) ...
s926541600
p03480
u714642969
1589555737
Python
PyPy3 (2.4.0)
py
Runtime Error
220
49392
1235
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): S=list(map(int,list(input()))) ...
s173938594
p03480
u714642969
1589554715
Python
PyPy3 (2.4.0)
py
Runtime Error
210
49392
1235
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): S=list(map(int,list(input()))) ...
s851344143
p03480
u561231954
1589512397
Python
Python (3.4.3)
py
Runtime Error
51
3188
340
import sys sys.setrecursionlimit(100000000) def main(): S = input() N = len(S) ans = 0 before = 0 for i in range(N - 1): if S[i] != S[i + 1]: ans = max(ans,min(i + 1,N - before)) before = i + 1 ans = max(ans,min(i + 1,N - before)) print(ans) if __name__ == '_...
s801565918
p03480
u714642969
1589254360
Python
PyPy3 (2.4.0)
py
Runtime Error
201
49476
1148
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): S=list(map(int,list(input()))) ...
s559634480
p03480
u119012830
1588912403
Python
Python (3.4.3)
py
Runtime Error
48
3956
427
s = list(input()) n = len(s) ans = 1 # 区間は2以上の長さ if n % 2 != 0: for i in range(1, n): a = s[n // 2] if s[n // 2 - 1 - i] != a or s[n // 2 + i] != a: print(n // 2 + i) exit() else: for i in range(1, (n - 1) // 2 + 1): b = s[(n-1)//2] if s[(n - 1) // 2 - i] ...
s976071282
p03480
u119012830
1588912138
Python
Python (3.4.3)
py
Runtime Error
45
3188
406
s = input() n = len(s) # 区間は2以上の長さ if n % 2 != 0: for i in range(1, n): a = s[n // 2] if s[n // 2 - 1 - i] != a or s[n // 2 + i] != a: print(n // 2 + i) exit() else: for i in range(1, (n - 1) // 2 + 1): b = s[(n-1)//2] if s[(n-1)//2-i] != b or s[(n-1)//2+i...
s557266486
p03480
u119012830
1588912059
Python
Python (3.4.3)
py
Runtime Error
45
3188
408
s = input() n = len(s) ans = 1 # 区間は2以上の長さ if n % 2 != 0: for i in range(1, n): a = s[n // 2] if s[n // 2 - 1 - i] != a or s[n // 2 + i] != a: print(n // 2 + i) exit() else: for i in range(1, (n - 1) // 2 + 1): b = s[(n-1)//2] if s[(n-1)//2-i] != b or s[(...
s501684968
p03480
u197300773
1584432557
Python
Python (3.4.3)
py
Runtime Error
90
3444
52
x,y=map(int,input().split());print(len(bin(y//x))-2)
s213660700
p03480
u017810624
1583368536
Python
Python (3.4.3)
py
Runtime Error
64
5876
113
s=list(input()) l=[] for i in range(len(s)-1): if s[i]!=s[i+1]: l.append(max(i+1,len(s)-i-1)) print(min(l))
s770671726
p03480
u186838327
1582630212
Python
PyPy3 (2.4.0)
py
Runtime Error
180
41840
172
s = str(input()) n = len(s) if n == 1: print(1) exit() maxs = [] for i in range(n-1): if s[i] != s[i+1]: maxs.append(max(i+1, n-i-1)) print(min(maxs))
s457522927
p03480
u399721252
1581343381
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
1776
#include <bits/stdc++.h> using namespace std; using ll = long long; using PII = std::pair<int, int>; using PLL = std::pair<ll, ll>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) bool k_flip(string s, int k) { int n = s.length(); int status =...
s932434829
p03480
u399721252
1581343296
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38384
1775
#include <bits/stdc++.h> using namespace std; using ll = long long; using PII = std::pair<int, int>; using PLL = std::pair<ll, ll>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) bool k_flip(string s, int k) { int n = s.length(); int status = ...
s190774862
p03480
u047816928
1579189422
Python
Python (3.4.3)
py
Runtime Error
46
3188
220
S = input() N = len(S) K = (N+1)//2 X = set() if N&1: X = {S[K-1]} l = K-2 r = K else: X = set() l = K-1 r = K while l: X.add(S[l]) X.add(S[r]) if len(X)>1: break K += 1 l -= 1 r += 1 print(K)
s256523889
p03480
u747220349
1578658784
Python
PyPy3 (2.4.0)
py
Runtime Error
174
39024
130
s=input() n=len(s) a=l.find("0") b=l.rfind("0") c=l.find("1") d=l.rfind("1") x=max(a,n-b-1) y=max(c,n-b-1) print(min(x,y,n-a,n-b))
s900094858
p03480
u642874916
1577519669
Python
PyPy3 (2.4.0)
py
Runtime Error
280
65388
1416
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations import sys import bisect import string import math import time from fractions import gcd #import random def I(): return int(input()) def MI(): return ma...
s528270340
p03480
u254871849
1577426066
Python
Python (3.4.3)
py
Runtime Error
28
3188
433
import sys s = sys.stdin.readline().rstrip() n = len(s) def main(): m = n // 2 if n & 1: l = s[m::-1] r = s[m:] else: l = s[m-1::-1] r = s[m:] base = l[0] cnt = m i = 0 while i <= m: if l[i] == r[i] == base: i += 1 cnt +=...
s479043889
p03480
u735069283
1575601434
Python
Python (3.4.3)
py
Runtime Error
318
14172
374
import numpy as np S=str(input()) X=[] c=1 for i in range(1,len(S)): if S[i]==S[i-1]: c +=1 elif S[i]!=S[i-1]: X +=[c] c=1 if i==len(S)-1: X +=[c] if len(X)>=3: X=np.cumsum(X) t=float('inf') for i in range(len(X)-1): u=max(X[i],len(S)-X[i]) t=min(u,t) answer=t elif len(X)==1: ans...
s579623165
p03480
u735069283
1575600136
Python
Python (3.4.3)
py
Runtime Error
75
3580
359
S=str(input()) X=[] c=1 for i in range(1,len(S)): if S[i]==S[i-1]: c +=1 elif S[i]!=S[i-1]: X +=[c] c=1 if i==len(S)-1: X +=[c] if len(X)>=3: if S[0]=='0': X.pop(0) if S[-1]=='0': X.pop(-1) P=(len(X)-1)//2 answer= min(X[P-1]+X[P],X[P]+X[P+1]) elif len(X)==1: answer=X[0] elif l...
s450793210
p03480
u588341295
1572623766
Python
Python (3.4.3)
py
Runtime Error
49
3828
1063
# -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline().strip() def list2d(a, b, c): return [[c] * b for i in range(a)] def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)] def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a...
s780542169
p03480
u911575040
1570846538
Python
Python (3.4.3)
py
Runtime Error
37
3956
134
s=list(input()) n=len(s) ans=n for i in range(n-1): if s[i]!=s[i+1]: t=max(i+1,n-(i+1)) ans=min(asn,t) print(ans)
s881090151
p03480
u911575040
1570846474
Python
PyPy3 (2.4.0)
py
Runtime Error
188
39920
128
s=input() n=len(s) ans=n for i in range(n-1): if s[i]!=s[i+1]: t=max(i+1,n-(i+1)) ans=min(asn,t) print(ans)
s252688989
p03480
u959888075
1570480918
Python
Python (2.7.6)
py
Runtime Error
10
2568
3764
using System; using System.Collections.Generic; using System.Linq; using BitArray = System.Collections.BitArray; using BigInteger = System.Numerics.BigInteger; using TextReader = System.IO.TextReader; using System.Text; namespace AtCoderProject { public class Program { public object Calc() { ...
s294314207
p03480
u787456042
1567558200
Python
Python (3.4.3)
py
Runtime Error
73
5184
96
s=input();l=[] for i in range(len(s)-1): if s[i]!=s[i+1]:l+=[max(i+1,len(s)-i-1)] print(min(l))
s906664915
p03480
u787456042
1567558121
Python
Python (3.4.3)
py
Runtime Error
73
5180
94
s=input();l=[] for i in range(len(s)-1): if s[i]!=s[i+1]:l+=[max(i,len(s)-i-1)] print(min(l))