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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s195823413 | p03737 | u115877451 | 1588008673 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | a,b,c=map(str,input().split())
print(a[0],b[0],c[0],sep='',capitalize())
|
s353872143 | p03737 | u457957084 | 1586709994 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | A, B, C= input().split().upper()
print(A[0] + B[0] + c[0])
|
s607307969 | p03737 | u069744971 | 1586389012 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a=int(input())
b=int(input())
if a>b:
print("GREATER")
elif a<b:
print("LESS")
else:
print("EQUAL") |
s221962936 | p03737 | u810356688 | 1586274861 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | a,b,c=map(int,input().split())
if 2*b==a+c:print("YES")
else:print("NO") |
s075139007 | p03737 | u440161695 | 1586116958 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 85 | a=int(input())
b=int(input())
print("GREATER" if a>b else "LESS" if a<b else "EQUAL") |
s532975000 | p03737 | u060793972 | 1586100100 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a,b,c=input().split()
print((a[0]+b[0]+[0]).upper()) |
s198804355 | p03737 | u496687522 | 1585975950 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 354 | n = int(input())
a = list(map(int, input().split()))
count = 0
sum_ = 0
for i in range(n):
if sum_ * (sum_+a[i]) <0 or i == 0:
sum_ += a[i]
elif sum_ > 0:
count += sum_+a[i]+1
a[i] = -sum_-1
sum_ += a[i]
elif sum_ < 0:
count += abs(sum_+a[i])+1
a[i] = -sum_+1
sum_ += a[i]
print(count) |
s699048902 | p03737 | u642418876 | 1585480601 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | s=list(map(int,input().split()))
x=s[0]
y=s[1]
z=s[2]
small=x[0]+y[0]+z[0]
print(small.upper())
|
s265367150 | p03737 | u440129511 | 1585314323 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | s1,s2,s3=map(str,input().split().capitalize()) #文字列
print(s1[0]+s2[0]+s3[0]) |
s022294923 | p03737 | u440129511 | 1585314132 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 73 | s1,s2,s3=input().split().capitalize() #文字列
print(s1[0]+s2[0]+s3[0]) |
s801847953 | p03737 | u440129511 | 1585280250 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 99 | s1,s2,s3 = list(map(str,input(),split()))
s1,s2,s3 = map(str.upper())
print( s1[0] + s2[0] + s3[0]) |
s908672584 | p03737 | u440129511 | 1585280202 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 91 | s1,s2,s3 = list(map(str,input()))
s1,s2,s3 = map(str.upper())
print( s1[0] + s2[0] + s3[0]) |
s824358550 | p03737 | u440129511 | 1585280110 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | a,b,c = list(map(str,input()))
a,b,c = map(str.upper())
print( a[0] + b[0] + c[0]) |
s844949713 | p03737 | u346677493 | 1584890486 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 53 | a,b,c=raw_input
ans= a[0]+b[0]+c[0]
print ans.upper() |
s700062868 | p03737 | u346677493 | 1584890452 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 61 | a,b,c=raw_input.split()
ans= a[0]+b[0]+c[0]
print ans.upper() |
s105926577 | p03737 | u346677493 | 1584890372 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 72 | a,b,c=raw_input
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper() |
s071100933 | p03737 | u346677493 | 1584890329 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 80 | a,b,c=raw_input.split()
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper() |
s613628995 | p03737 | u346677493 | 1584890296 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 91 | a,b,c=map(int,raw_input().split())
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper() |
s759748002 | p03737 | u135360096 | 1584029071 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | s1,s2,s3 = map(str, input().split())
ans = upper("".join(i[0] for i in [s1,s2,s3]))
print(ans) |
s045641779 | p03737 | u975719989 | 1583438031 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | a,b,c = input().split()
print(a[0].upper() + b[0].upper() + c[0]upper()) |
s823183475 | p03737 | u975719989 | 1583437993 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | a,b,c = input().split()
print(a[0].upper() +b[0].upper() + c[0]upper()) |
s570002720 | p03737 | u975719989 | 1583437733 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | S1,S2,S3 = list(map(str,input().split()))
s1.upper()
s2.upper()
s3.upper()
print(s1,s2,s3) |
s457882529 | p03737 | u016901717 | 1583035977 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | s1 s2 s3=input().split()
print(s1[0].upper()+s2[0].upper()+s3[0].upper())
|
s377862248 | p03737 | u391328897 | 1581446586 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | print(str.upper(input()[0]) + str.upper(input()[0]) + str.upper(input()[0]))
|
s057341224 | p03737 | u772649753 | 1581371867 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a,b,c = map(str,input(),split())
A = a[0].upper()
B = b[0].upper()
C = c[0].upper()
X = A+B+C
X = X.strip()
print(X) |
s645338947 | p03737 | u806601169 | 1581044141 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 105 | a, b, c = map(lambda s: s.strip(), input().split())
print(f"{a[0].upper()}{b[0].upper()}{c[0].upper()}") |
s018605808 | p03737 | u875600867 | 1580085759 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 802 | #(1,0)と(1,1)が敗戦の最終状態。そこから遷移する状態を考える。
#(2,0),(3,0)は勝利状態。
#(2,1),(2,2)はどう遷移しても上記勝利状態に遷移してしまうので、敗北状態。
#(3,1),(4,0),(4,1),(5,0)...などが上記敗北状態に遷移できる状態なので勝利状態。
#実験を重ねると|X-Y|<=1が敗戦状態ではないか、という仮説が立つ。
#少し考えると、|X-Y|<=1からの遷移は必ず|X'-Y'|>1にならざるを得なくて
#|X-Y|>1からは必ず|X'-Y'|<=1となる遷移が存在することが分かる。
#最終的には|X-Y|<=1の状態は2N手後に(1,0)と(1,1)へと収斂するので、勝利条件が確定する。
X,Y=map(int,input().split())
if abs(X-Y)<=1:
print("Brown")
else:
print("Alice")
|
s217660396 | p03737 | u871596687 | 1579377209 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 72 | s,t,u = input().spilt()
print(s[0].upper()+t[0].upper()+u[0].upper())
|
s952546346 | p03737 | u871596687 | 1579377176 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | s,t,u = map(str,input().spilt())
print(s[0].upper()+t[0].upper()+u[0].upper())
|
s469551881 | p03737 | u871596687 | 1579377066 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 90 | s,t,u = map(str,input().spilt())
print(str.upper(s[0])+str.upper(t[0])+str.upper(u[0]))
|
s068822618 | p03737 | u871596687 | 1579377034 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | s,t,u = map(str,input().spilt())
print(str.upper(s[0]+str.upper(t[0]+str.upper(u[0]))
|
s434777855 | p03737 | u763881112 | 1578667348 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 |
import numpy as np
import math
s=" "+input()
for i in range(len(s)):
if(s[i]==" "):
print(char((ord)s[i+1]-(ord)'a'+(ord)'A'),end="")
print() |
s238673705 | p03737 | u644568158 | 1578363197 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 85 | x,y=map(int,input().split())
if abs(x-y)<=1:
print('Brown')
else:
print('Alice')
|
s622635355 | p03737 | u863044225 | 1578363075 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | x,y=map(int,input().split())
if abs(x-y)<=1:
print('Brown')
else:
print('Alice')
|
s557610457 | p03737 | u185037583 | 1577886136 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | a,b,c=input().split()
print(upper(a[0]+b[0]+c[0]) |
s171639994 | p03737 | u027675217 | 1577305698 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 68 | a,b,c = input().split()
str.capitalize(a,b,c)
print(a[0]+b[0]+c[0])
|
s664198831 | p03737 | u595716769 | 1577168567 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | s, t, u = map(str, input().split())
print(s.upper[0]+t.upper[0]+u.upper[0]) |
s772056028 | p03737 | u506587641 | 1576963790 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | s1, s2, s3 = map(str, input().split())
lst = [s[0], s[1], s[2]].capitallize()
print(''.join(lst)) |
s943683367 | p03737 | u181215519 | 1576640892 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | s1, s2, s3 = map( str, input().split() )
print( s1[0].upper + s2[0].upper + s3[0].upper ) |
s406330575 | p03737 | u737321654 | 1576423637 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 868 | N = int(input())
A = list(map(int, input().split()))
currentSum = 0
count1 = 0
count2 = 0
for i in range(N):
restSum = currentSum
currentSum += A[i]
if currentSum <= 0 and restSum < 0:
count1 += abs(currentSum) + 1
currentSum = 1
elif currentSum >= 0 and restSum > 0:
count1 += abs(currentSum) + 1
currentSum = -1
elif currentSum == 0 and restSum == 0:
count1 += 1
currentSum = -1
currentSum = 0
for i in range(N):
restSum = currentSum
currentSum += A[i]
if currentSum <= 0 and restSum < 0:
count2 += abs(currentSum) + 1
currentSum = 1
elif currentSum >= 0 and restSum > 0:
count2 += abs(currentSum) + 1
currentSum = -1
elif currentSum == 0 and restSum == 0:
count2 += 1
currentSum = -1
print(min(count1, count2)) |
s683132016 | p03737 | u970197315 | 1575767260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 232 | #
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,b,c = map(str, input().split())
ans = ''
ans = a[0:1]+b[0:1]+c[0:1]
ans = ans.upper()
pritn(ans) |
s742639165 | p03737 | u827202523 | 1574224041 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 65 | strs = input.split()
print("".join([a[0].upper() for a in strs])) |
s777269123 | p03737 | u768559443 | 1573945760 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 55 | a,b,c===input().split()
print((a[0]+b[0]+c[0]).upper()) |
s685019059 | p03737 | u923659712 | 1573856677 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 86 | x, y =map(int,input().split())
print("Alice") if abs(x - y) >= 2 else print("Brown") |
s049938290 | p03737 | u861141787 | 1573275079 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38640 | 1285 | n = int(input())
a = list(map(int, input().split()))
even_is_negative = 0
odd_is_nagative = 0
for i in range(n):
if i % 2 == 0 and a[i] < 0:
even_is_negative += 1
elif i % 2 == 1 and a[i] < 0:
odd_is_nagative += 1
# print(even_is_negative)
# print(odd_is_nagative)
sum = a[0]
change = 0
if even_is_negative >= odd_is_nagative:
for i in range(1, n):
if i % 2 == 1 and sum + a[i] <= 0:
change += abs(sum + a[i]) + 1
sum = 1
# print("a " + str(sum))
elif i % 2 == 0 and sum + a[i] >= 0:
change += sum + abs(a[i]) + 1
sum = -1
# print("b " + str(sum))
else:
sum += a[i]
# print("c " + str(sum))
if even_is_negative < odd_is_nagative:
for i in range(1, n):
if i % 2 == 1 and sum + a[i] >= 0:
change += sum + abs(a[i]) + 1
sum = -1
# print("a " + str(sum) + str(change))
elif i % 2 == 0 and sum + a[i] <= 0:
change += abs(sum + a[i]) + 1
sum = 1
# print("b " + str(sum)+ str(change))
else:
sum += a[i]
# print("c " + str(sum)+ str(change))
if sum == 0:
print(change + 1)
else:
print(change)
|
s288325313 | p03737 | u754022296 | 1572918269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a, b, c = map(int, input().split())
print(str.upper(a[0]+b[0]+c[0])) |
s278781098 | p03737 | u727787724 | 1572765214 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 91 | a,b,c=input().split()
a=list(a)
b=list(b)
c=list(c)
print(a[0].upper+b[0].upper+c[0].upper) |
s278719042 | p03737 | u895536055 | 1572526894 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | s1 = input()
s2 = input()
s3 = input()
s1.upper()
s2.upper()
s3.upper()
print(s1[0] + s2[0] + s3[0]) |
s659387602 | p03737 | u895536055 | 1572526851 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | s1 = input()
s2 = input()
s3 = input()
print(s1.upper()[0] + s2.upper()[0] + s3.upper()[0]) |
s835421314 | p03737 | u814986259 | 1572367959 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | s1,s2,s3=input.split()
ans="".join([s1[0],s2[0],s3[0]])
print(ans.upper()) |
s673369149 | p03737 | u225388820 | 1572360093 | Python | PyPy3 (2.4.0) | py | Runtime Error | 186 | 39536 | 54 | s1,s2,s3=map(input().split())
print(s1[0]+s2[0]+s3[0]) |
s624209688 | p03737 | u225388820 | 1572360056 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38384 | 58 | s1,s2,s3=map(int,input().split())
print(s1[0]+s2[0]+s3[0]) |
s920277929 | p03737 | u958210291 | 1571708252 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | s1,s2,s3 = input().split()
s1 = s1[0:1].upper
s2 = s2[0:1].upper
s3 = s3[0:1].upper
print(s1 + s2 + s3) |
s553278664 | p03737 | u516554284 | 1570826279 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 68 | a,b,c=import().split()
print(a[0].upper()+b[0].upper()+c[0].upper()) |
s807903818 | p03737 | u448655578 | 1570411759 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a,b,c = map(str, input().split())
print(str(a[0].uppercase)+str(b[0].uppercase)+str(c[0].uppercase)) |
s097526425 | p03737 | u625741705 | 1570410296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a= input()
b= input()
c= input()
str = a[0] + b[0] + c[0]
print(str) |
s780317850 | p03737 | u625741705 | 1570410274 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 68 | a= input()
b= input()
c= input()
str = a[0] + b[0] + c[0]
print(str) |
s428644204 | p03737 | u625741705 | 1570409790 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 72 | s = input().split()
str = s[0][0] + s[1][0] + s[2][0]
print(str.upper()) |
s635336444 | p03737 | u287431190 | 1570048668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | s1,s2,s3 = map(str,input())
bs1 = s1.upper()
bs2 = s2.upper()
bs3 = s3.upper()
print(bs1[0]+bs2[0]+bs3[0]) |
s646475780 | p03737 | u623349537 | 1569889458 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | s1, s2, s3 = input().split()
print(s1[0].upper() + S2[0].upper() + S3[0].upper()) |
s333802139 | p03737 | u175590965 | 1569722792 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 55 | a,b,c = input().split()
print((a[0]+b[1]+c[2]).upper()) |
s943079783 | p03737 | u945419374 | 1569620943 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | a,b,c=input()
komoji=a[0]+b[0]+c[0]
print(komoji.upper()) |
s737285734 | p03737 | u883232818 | 1569558212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | A = int(input())
B = int(input())
print('LESS' if A < B else 'GREATER' if A > B else 'EQUAL') |
s197337070 | p03737 | u883232818 | 1569558025 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | A = int(input())
B = int(input())
print('LESS' if A < B else 'GREATER' if A > B else 'EQUAL') |
s938690596 | p03737 | u740047492 | 1569349180 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | a, b, c = input().split().upper()
print((a[0], b[0], c[0]).sep()) |
s614017954 | p03737 | u740047492 | 1569349135 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 57 | a, b, c = input().split()
print((a[0], b[0], c[0]).sep()) |
s918664402 | p03737 | u740047492 | 1569348914 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | a, b, c = map(str, input().split().upper())
print(a[0] + b[0] + c[0]) |
s969197973 | p03737 | u740047492 | 1569348718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a, b, c = map(str, input().split().upper())
print(a[0] + b[0] + c[0])
|
s133415477 | p03737 | u536177854 | 1569182450 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | a,b,c=map(upper(),input().split())
print(a[0],b[0],c[0]) |
s634224726 | p03737 | u785470389 | 1568870208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | s1, s2, s3 = map(str, input().split())
s1.upper
s2.upper
s3.upper
print("{0}{1}{2}".format(s1[0], s2[0], s3[0]) |
s866422148 | p03737 | u597017430 | 1568233267 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | A, B, C = map(str, input().split())
print(A.upper[0]+B.upper[0]+C.upper[0]) |
s670100306 | p03737 | u920438243 | 1568223453 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 331 | a = input()
b = input()
if a == b:
print("EQUAL")
if len(a) > len(b):
print("GREATER")
elif len(a) < len(b):
print("LESS")
else:
for i in range(len(a)):
if int(a[i]) > int(b[i]):
print("GREATER")
break
elif int(a[i]) < int(b[i]):
print("LESS")
break
|
s365059917 | p03737 | u643714578 | 1566923669 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a,b,c=input().split()
print(a[0].upper+b[0].upper+c[0].upper) |
s657078331 | p03737 | u045408189 | 1566864515 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a,b,c=input().split()
print((a[0],b[0],c[0],sep='').upper())
|
s486235262 | p03737 | u045408189 | 1566864443 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | a,b,c=input().split()
print((a[0],b[0],c[0],sep='').upper) |
s705114218 | p03737 | u920438243 | 1566574475 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | lines = input().split()
print(str.upper(lines[0][0])+str.upper(lines[1][0]+str.upper(lines[2][0]))
|
s358975171 | p03737 | u703890795 | 1566508367 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | s1, s2, s3 = input().split()
s = s1[0]+s2[0]+s3[0]
print(upper(s)) |
s444306431 | p03737 | u264265458 | 1566194101 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a,b,c=input().split()
print(a[0].upper+b[0].upper+c[0].upper) |
s634149804 | p03737 | u248670337 | 1565880714 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 62 | a,b,c=map(int,input().split())
print((a[0]+b[0]+c[0]).upper()) |
s985724320 | p03737 | u248670337 | 1565880675 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 49 | print((input()[0]+input()[0]+input()[0]).upper()) |
s065953747 | p03737 | u256464928 | 1565844741 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a,b,c = input().split()
print(upper(a[0]+b[0]+c[0])) |
s205718517 | p03737 | u493491792 | 1565843280 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 746 | n=int(input())
lista=list(map(int,input().split()))
goukei=0
count=0
for i in range(n):
number=lista[i]+goukei
if i%2==0:
if number>=0:
count=count+number+1
goukei=-1
else:
goukei=number
else:
if number<=0:
count=count+abs(number)+1
goukei=1
else:
goukei=number
count1=count
goukei=0
count=0
for i in range(n):
number=lista[i]+goukei
if i%2==1:
if number>=0:
count=count+number+1
goukei=-1
else:
goukei=number
else:
if number<=0:
count=count+abs(number)+1
goukei=1
else:
goukei=number
print(min(count,count1)) |
s231850186 | p03737 | u618373524 | 1565799489 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | a = int(input())
b = int(input())
print("GREATER" if a > b else "EQUAL" if a == b else "LESS") |
s474421260 | p03737 | u842388336 | 1565651402 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | A.upper(),B.upper(),C.upper() = input().split()
print(A[0]+B[0]+C[0]) |
s485351211 | p03737 | u665038048 | 1565202997 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | s = list(map(int, input().split()))
print(s[0].upper()+s[1].upper()+s[2].upper()) |
s536921631 | p03737 | u736729525 | 1564806792 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | print("".join(x[0].upper()for x input().split())) |
s505437291 | p03737 | u656572785 | 1563651161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 444 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s, t, u;
cin >> s >> t >> u;
string ans;
ans.push_back(s[0] - 'a' + 'A');
ans.push_back(t[0] - 'a' + 'A');
ans.push_back(u[0] - 'a' + 'A');
cout << ans << endl;
return 0;
}
|
s280332419 | p03737 | u502028059 | 1563644557 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 73 | s1, s2, s3 = input().split()
ans = (s1[0]+s2[0]+s3[3]).upper()
print(ans) |
s760229766 | p03737 | u538473330 | 1563411850 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 92 | a,b=[int(input()) for i in range(2)]
print('GREATER' if a>b else 'LESS' if a<b else 'EQUAL') |
s591325611 | p03737 | u374802266 | 1563337390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a,b,c=input().split()
a,b,c=str.apper(a),str.apper(b),str.apper(c)
print(a[0]+b[0]+c[0]) |
s875625930 | p03737 | u633914031 | 1562732541 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 726 | n=int(input())
b=list(map(int,input().split()))
a=b[:]
cnt=0
wa=0
condition='plus'
for i in range(n):
wa+=a[i]
if condition == 'plus':
condition='minus'
if wa<=0:
cnt+=abs(wa)+1
a[i]+=abs(wa)+1
wa+=abs(wa)+1
elif condition == 'minus':
condition='plus'
if wa>=0:
cnt+=abs(wa)+1
a[i]-=abs(wa)+1
wa-=abs(wa)+1
cnt1=cnt
a=b[:]
cnt=0
wa=0
condition='minus'
for i in range(n):
wa+=a[i]
if condition == 'plus':
condition='minus'
if wa<=0:
cnt+=abs(wa)+1
a[i]+=abs(wa)+1
wa+=abs(wa)+1
elif condition == 'minus':
condition='plus'
if wa>=0:
cnt+=abs(wa)+1
a[i]-=abs(wa)+1
wa-=abs(wa)+1
cnt2=cnt
print(min(cnt1,cnt2))
|
s193754549 | p03737 | u633914031 | 1562651297 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 929 | n=int(input())
b=list(map(int,input().split()))
a=b
condition=''
cnt=0
wa=0
for i in range(n):
wa+=a[i]
if i == 0:
if a[i]>0:
condition='minus'
else:
condition='plus'
elif condition == 'plus':
condition='minus'
if wa<=0:
cnt+=abs(wa)+1
a[i]+=abs(wa)+1
wa+=abs(wa)+1
elif condition == 'minus':
condition='plus'
if wa>=0:
cnt+=abs(wa)+1
a[i]-=abs(wa)+1
wa-=abs(wa)+1
cnt1=cnt
a=b
condition=''
cnt=0
wa=0
for i in range(n):
a[i]=a[i]/abs(a[i])*(-1)
cnt+=abs(a[i])+1
wa+=a[i]
if i == 0:
if a[i]>0:
condition='minus'
else:
condition='plus'
elif condition == 'plus':
condition='minus'
if wa<=0:
cnt+=abs(wa)+1
a[i]+=abs(wa)+1
wa+=abs(wa)+1
elif condition == 'minus':
condition='plus'
if wa>=0:
cnt+=abs(wa)+1
a[i]-=abs(wa)+1
wa-=abs(wa)+1
cnt2=cnt
print(min(cnt1,cnt2)) |
s061111732 | p03737 | u633914031 | 1562535799 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 541 | コードテスト
解説
提出 #6259010
ソースコード 拡げる
Copy
Copy
n=int(input())
b=list(map(int,input().split()))
a=b
condition=''
cnt=0
wa=0
for i in range(n):
wa+=a[i]
if i == 0:
if a[i]>0:
condition='minus'
else:
condition='plus'
elif condition == 'plus':
condition='minus'
if wa<=0:
cnt+=abs(wa)+1
a[i]+=abs(wa)+1
wa+=abs(wa)+1
elif condition == 'minus':
condition='plus'
if wa>=0:
cnt+=abs(wa)+1
a[i]-=abs(wa)-1
wa-=abs(wa)-1
print(cnt) |
s479786465 | p03737 | u668503853 | 1562328211 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | a,b,c=input().split()
print(a[0]+b[0]+c[0].upper) |
s611462922 | p03737 | u288948615 | 1561938045 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | s1, s2, s3 = input().split()
print(s1[0].upper() + s2[0].uppter() + s3[0].upper()) |
s473544170 | p03737 | u764234894 | 1561331574 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38384 | 61 | x,y,z = map(string,input().split())
print(x[:1]+y[:1]+z[:1])
|
s505412594 | p03737 | u764234894 | 1561331542 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38384 | 53 | x,y,z = map(input().split())
print(x[:1]+y[:1]+z[:1]) |
s448381890 | p03737 | u223646582 | 1561050668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | A,B,C=input().split()
print(upper(A[0],B[0],C[0]),sep='') |
s871664391 | p03737 | u652081898 | 1560116803 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | x, y = map(int, input().split())
if abs(x-y) <= 1:
print("Alice")
else:
print("Brown") |
s978305199 | p03737 | u083668616 | 1559939397 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 131 | s1, s2, s3 = map(int, input().split())
ans = str(chr(ord(s1[0])-32)) + str(chr(ord(s2[0])-32)) + str(chr(ord(s3[0])-32))
print(ans) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.