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
s675771042
p02415
u017764209
1420628595
Python
Python
py
Runtime Error
0
0
151
x = raw_input() for a in list(str): if a.islower(): print a.upper() elif a.isupper(): print a.lower() else print a
s972281714
p02415
u017764209
1420628764
Python
Python
py
Runtime Error
0
0
153
str = raw_input() for a in list(str): if a.islower(): print a.upper() elif a.isupper(): print a.lower() else print a
s799084093
p02415
u823030818
1423103737
Python
Python3
py
Runtime Error
0
0
261
text = input() for i in range(len(text)): code = ord(text[i]) if ord('A') <= code <= ord('Z'): result += chr(code + 32) elif ord('a') <= code <= ord('z'): result += chr(code - 32) else: result += chr(code) print(result)
s936790336
p02415
u971748390
1431073199
Python
Python3
py
Runtime Error
0
0
23
print(input.swapcase())
s284639266
p02415
u604774382
1431685946
Python
Python
py
Runtime Error
0
0
49
print( sys.stdin.readline().rstrip().swapcase() )
s931116377
p02415
u571345655
1435301896
Python
Python
py
Runtime Error
0
0
203
# coding: utf-8 line = raw_input() for s in line: if s.isalpha(): if s.isupper(): print s.lower(), else: print s.upper(), else: print s, else print
s576576588
p02415
u571345655
1435302018
Python
Python
py
Runtime Error
0
0
235
# coding: utf-8 line = raw_input() result = '' for s in line: if s.isalpha(): if s.isupper(): result += s.lower(), else: result += s.upper(), else: print result += s print result
s834696407
p02415
u571345655
1435302043
Python
Python
py
Runtime Error
0
0
233
# coding: utf-8 line = raw_input() result = '' for s in line: if s.isalpha(): if s.isupper(): result += s.lower() else: result += s.upper() else: print result += s print result
s975968963
p02415
u467309160
1443529193
Python
Python3
py
Runtime Error
0
0
339
using namespace std; typedef long long ll; int main() { string str; getline(cin, str); for (int i = 0; i < str.size(); ++i) { char c = str[i]; if ('a' <= c && c <= 'z') cout << (char)(c-'a'+'A'); else if ('A' <= c && c <= 'Z') cout << (char)(c-'A'+'a'); else cout << c; } ...
s201733536
p02415
u756468156
1467452142
Python
Python3
py
Runtime Error
0
0
190
string = input() for i in string: if i.isupper(): print(i.lower(), end = "") elif string[i].islower(): print(i.upper(), end = "") else: print(i, end = "")
s217007857
p02415
u204883389
1470206492
Python
Python3
py
Runtime Error
0
0
57
s = [int(i) for i in input().split()] print(s.swapcase())
s867158271
p02415
u204883389
1470206820
Python
Python3
py
Runtime Error
0
0
763
str_atog = "ABCDEFG" str_hton = "hijklmn" # lower(), upper()???????????????????????? print "??§??????(???) %s ????°???????(???) %s ?????????" % (str_atog, str_atog.lower()) print "?°???????(???) %s ?????§??????(???) %s ?????????" % (str_hton, str_hton.upper()) print arr = ['And', 'Begin', 'Code', 'Double'] arr2 = ...
s715149467
p02415
u085472528
1470206956
Python
Python3
py
Runtime Error
0
0
17
.lower() .upper()
s189362968
p02415
u204883389
1470206963
Python
Python3
py
Runtime Error
0
0
62
print [str.lower() for str in] print [str.upper() for str in]
s468435234
p02415
u498041957
1470206970
Python
Python3
py
Runtime Error
0
0
17
print(input().swa
s826456481
p02415
u671553883
1470207205
Python
Python3
py
Runtime Error
0
0
45
a = [str(i) for i in range('a, z')] a.upper()
s191211000
p02415
u628732336
1470207251
Python
Python3
py
Runtime Error
0
0
23
print(input).swapcase()
s339270830
p02415
u628732336
1470207298
Python
Python3
py
Runtime Error
0
0
23
print(input.swapcase())
s572696863
p02415
u435917115
1470207314
Python
Python3
py
Runtime Error
0
0
205
ATK = input() for i in range(len(ATK)): if "a" <=ATK[i]<="z": print(ATK[i].upper, end='') elif "A"<=ATK[i]<="Z": print(ATK[i].lower, end='') else: print(ATK[i], end='')
s834189545
p02415
u204883389
1470207536
Python
Python3
py
Runtime Error
0
0
18
print(.swapcase())
s464061047
p02415
u204883389
1470207667
Python
Python3
py
Runtime Error
0
0
50
print(fAIR, LATER, OCCASIONALLY CLOUDY.swapcase())
s428672713
p02415
u051469504
1470207723
Python
Python3
py
Runtime Error
0
0
54
s=input() p=input() print('Yes' if p in s+s else 'No')
s671768876
p02415
u204883389
1470269481
Python
Python3
py
Runtime Error
0
0
25
print(' '.swapcase(1200))
s718096335
p02415
u204883389
1470269598
Python
Python3
py
Runtime Error
0
0
24
print(''.swapcase(1200))
s973962537
p02415
u204883389
1470269627
Python
Python3
py
Runtime Error
0
0
25
print(''.swapcase(<1200))
s347000045
p02415
u204883389
1470269651
Python
Python3
py
Runtime Error
0
0
24
print(' 'swapcase(1200))
s939779210
p02415
u204883389
1470269671
Python
Python3
py
Runtime Error
0
0
25
print(' ',swapcase(1200))
s886810367
p02415
u204883389
1470269810
Python
Python3
py
Runtime Error
0
0
57
s = [int(i) for i in input().split()] print(s.swapcase())
s714393624
p02415
u204883389
1470269833
Python
Python3
py
Runtime Error
0
0
61
s = [int(i) for i in input().split()] print(s.swapcase(1200))
s247733527
p02415
u204883389
1470269861
Python
Python3
py
Runtime Error
0
0
59
s = [int(i) for i in input().split()] print('s'.swapcase())
s200926603
p02415
u204883389
1470269919
Python
Python3
py
Runtime Error
0
0
55
s = [int(i) for i in input().split()] print(s.swapcase)
s429869644
p02415
u204883389
1470270025
Python
Python3
py
Runtime Error
0
0
26
print(' '.swapcase(1200<))
s409068939
p02415
u204883389
1470270056
Python
Python3
py
Runtime Error
0
0
41
import swapcase print(' '.swapcase(1200))
s997950149
p02415
u204883389
1470270074
Python
Python3
py
Runtime Error
0
0
37
import swapcase print(' '.swapcase())
s438691233
p02415
u204883389
1470270121
Python
Python3
py
Runtime Error
0
0
25
print(' '.swapcase(1200))
s228681464
p02415
u204883389
1470270136
Python
Python3
py
Runtime Error
0
0
27
print(' '.swapcase(0<1200))
s952618245
p02415
u204883389
1470270175
Python
Python3
py
Runtime Error
0
0
26
print(' '.swapcase())<1200
s262463818
p02415
u204883389
1470270188
Python
Python3
py
Runtime Error
0
0
27
print(' '.swapcase())0<1200
s530735845
p02415
u204883389
1470270214
Python
Python3
py
Runtime Error
0
0
28
print(' '.swapcase([<1200]))
s293144986
p02415
u204883389
1470270232
Python
Python3
py
Runtime Error
0
0
28
print(' '.swapcase((<1200)))
s953048142
p02415
u204883389
1470270248
Python
Python3
py
Runtime Error
0
0
27
print(''.swapcase((<1200)))
s000632188
p02415
u204883389
1470270327
Python
Python3
py
Runtime Error
0
0
65
str = [int(i) for i in input().split()] print(''.swapcase(<1200))
s591854213
p02415
u204883389
1470270348
Python
Python3
py
Runtime Error
0
0
62
s = [int(i) for i in input().split()] print(''.swapcase(1200))
s176378713
p02415
u204883389
1470270368
Python
Python3
py
Runtime Error
0
0
63
s = [int(i) for i in input().split()] print('s'.swapcase(1200))
s204707890
p02415
u204883389
1470270385
Python
Python3
py
Runtime Error
0
0
61
s = [int(i) for i in input().split()] print(s.swapcase(1200))
s395209960
p02415
u204883389
1470270431
Python
Python3
py
Runtime Error
0
0
65
s = [int(i) for i in input().split()] s = swapcase(1200) print(s)
s912912194
p02415
u204883389
1470273186
Python
Python3
py
Runtime Error
0
0
21
"???".swapcase(<1200)
s238856068
p02415
u204883389
1470273211
Python
Python3
py
Runtime Error
0
0
28
print("???".swapcase(<1200))
s124552884
p02415
u204883389
1470273752
Python
Python3
py
Runtime Error
0
0
41
x = int(input((" :")) print(" ".swapcase)
s688398389
p02415
u204883389
1470273776
Python
Python3
py
Runtime Error
0
0
37
int(input((" :")) print(" ".swapcase)
s858765708
p02415
u204883389
1470273805
Python
Python3
py
Runtime Error
0
0
41
s = int(input((" :")) print(s.swapcase())
s773552483
p02415
u204883389
1470274317
Python
Python3
py
Runtime Error
0
0
17
print(' '.swap())
s476836631
p02415
u204883389
1470274359
Python
Python3
py
Runtime Error
0
0
101
def main(): s = raw_input().strip() print s.swapcase() if __name__ == '__main__': main()
s292789767
p02415
u391228754
1475572244
Python
Python3
py
Runtime Error
0
0
33
fAIR, LATER, OCCASIONALLY CLOUDY.
s516227664
p02415
u979507074
1476176010
Python
Python
py
Runtime Error
0
0
206
while 1: input = raw_input() output = "" for i in input: if i.islower(): output += i.upper() elif i.isupper(): output += i.lower() print(output)
s215396557
p02415
u494314211
1481441667
Python
Python3
py
Runtime Error
0
0
124
s=input() for i in range(len(s)): if s[i].islower(): s[i]=s[i].upper() elif s[i].isupper(): s[i]=s[i].lower() print(s)
s244755164
p02415
u519227872
1485867238
Python
Python
py
Runtime Error
0
0
182
words = input() _words = "" for case in words: if case != case.upper(): case = case.upper() elif case != case.lower(): case = case.lower() _words += case print (_words)
s322987704
p02415
u130834228
1489113630
Python
Python3
py
Runtime Error
0
0
308
list_str2 = [0 for i in range(26)] while(1): list_str1 = list(input()) print(list_str1) if list_str1 == []: break for i in range(len(list_str1)): if 97 <= ord(list_str1[i].lower()) <= 122: list_str2[ord(list_str1[i].lower())-97] += 1 for i in range(26): print(chr(97+i)+' : '+str(list_str2[i]))
s119189707
p02415
u213265973
1494336462
Python
Python3
py
Runtime Error
0
0
210
words = input().split(" ") for word in words: for w in word: if w.isalpha: if w.isupper(): w.lower() else: w.upper() print(",".join(words))
s711533400
p02415
u213265973
1494336532
Python
Python3
py
Runtime Error
0
0
220
words = input().split(" ") for word in words: for w in word: if w.isalpha: if w.isupper(): w.lower() elif w.islower: w.upper() print(",".join(words))
s647091766
p02415
u213265973
1494336576
Python
Python3
py
Runtime Error
0
0
220
words = input().split(",") for word in words: for w in word: if w.isalpha: if w.isupper(): w.lower() elif w.islower: w.upper() print(",".join(words))
s057403134
p02415
u213265973
1494336582
Python
Python3
py
Runtime Error
0
0
220
words = input().split(",") for word in words: for w in word: if w.isalpha: if w.isupper(): w.lower() elif w.islower: w.upper() print(",".join(words))
s961403556
p02415
u213265973
1494336731
Python
Python3
py
Runtime Error
0
0
244
words = input().split(",") for word in words: for w in word: if w.isalpha == True: if w.isupper() == True: w.lower() elif w.islower == True: w.upper() print(",".join(words))
s939872123
p02415
u213265973
1494336789
Python
Python3
py
Runtime Error
0
0
245
words = input().split(",") for word in words: for w in word: if w.isalpha == True: if w.isupper() == True: w.lower() elif w.islower == True: w.upper() print(", ".join(words))
s853066814
p02415
u213265973
1494336793
Python
Python3
py
Runtime Error
0
0
245
words = input().split(",") for word in words: for w in word: if w.isalpha == True: if w.isupper() == True: w.lower() elif w.islower == True: w.upper() print(", ".join(words))
s294199142
p02415
u350064373
1501238671
Python
Python3
py
Runtime Error
0
0
17
swapcase(input())
s861070477
p02415
u354053070
1501383191
Python
Python3
py
Runtime Error
0
0
24
print(swapcase(input()))
s792332968
p02415
u105694406
1504152738
Python
Python3
py
Runtime Error
0
0
102
s = input() for i in s: if(i.isupper()): print(i.lower(), end="") else print(i.upper(), end="")
s325292904
p02415
u480053997
1507278377
Python
Python3
py
Runtime Error
0
0
140
for c in input(): if c.islower(): s += c.upper() elif c.isupper(): s += c.lower() else: s += c print (s)
s893647436
p02415
u480053997
1507278524
Python
Python3
py
Runtime Error
0
0
140
for c in input(): if c.islower(): s += c.upper() elif c.isupper(): s += c.lower() else: s += c print (s)
s368114091
p02415
u744506422
1511941594
Python
Python3
py
Runtime Error
0
0
293
Import sys my_str = input() for i in range(len(my_str)): if "a"<=my_str[i]<="z": sys.stdout.write(my_str[i].upper(),end='') elif "A"<=my_str[i]<="Z": sys.stdout.write(my_str[i].lower(),end='') else: sys.stdout.write(my_str[i],end='') sys.stdout.write("\n")
s445550797
p02415
u369093003
1515161700
Python
Python3
py
Runtime Error
0
0
151
s=input();ans="" for i in range(len(s)): if s[i].islower(): ans+=s[i].upper(),end="" else: ans+=s[i].lower(),end="" print(ans)
s623323382
p02415
u267728784
1516756655
Python
Python3
py
Runtime Error
0
0
156
print(input().swapcase()) s = input() for c in s: if c.islower(): print(c.upper(), end="") else: print(c.lower(), end="") print()
s953324673
p02415
u088372268
1517281486
Python
Python3
py
Runtime Error
0
0
41
tr_in = input() print(str_in.swapcase())
s283113615
p02415
u876060624
1525059809
Python
Python3
py
Runtime Error
0
0
79
A = input() upper(A[0]) for i in range(len(A): if i>0: lower(A[i]) print(A)
s244835664
p02415
u912237403
1371245542
Python
Python
py
Runtime Error
0
0
36
print input().strip('\n').swapcase()
s405162980
p02415
u633068244
1393328242
Python
Python
py
Runtime Error
0
0
28
x = input() print x.upper()
s873665189
p02415
u633068244
1393329483
Python
Python
py
Runtime Error
0
0
111
for x in raw_input(): if x.islower(): print x.upper() elif x.isupper() print x.lower()
s588088636
p02415
u633068244
1393329663
Python
Python
py
Runtime Error
0
0
114
z = "" for x in raw_input(): if x.islower(): z += x.upper() else: z += x.lower(), print z
s648667320
p02416
u138628845
1531446617
Python
Python3
py
Runtime Error
0
0
139
# -*- coding: utf-8 -*- while True: kazu = [int(x) for x in input()] if kazu == 0: break print('{}'.format(sum(kazu)))
s419315690
p02416
u401439950
1535120553
Python
Python3
py
Runtime Error
0
0
108
while True: s = input() if s == "0": break a = 0 for i in s: a += int(s[i])
s302881570
p02416
u401439950
1535120709
Python
Python3
py
Runtime Error
0
0
122
while True: s = input() if s == "0": break a = 0 for i in s: a += int(s[i]) print(a)
s935354814
p02416
u281808376
1540477380
Python
Python3
py
Runtime Error
0
0
159
lst=[] while True: lst.append(input()) if 0 in lst: break for i in lst: sum=0 for j in range(len(i)): sum+=i[j] print(sum)
s424344493
p02416
u623996423
1541071414
Python
Python3
py
Runtime Error
0
0
119
a = True while a: l = map(int, list(input())) if l[0] != 0: print(sum(l)) else: a = False
s766629519
p02416
u623996423
1541071445
Python
Python3
py
Runtime Error
0
0
118
a = True while a: l = map(int, list(input())) if l[0] != 0: print(sum(l)) else: a = False
s180722782
p02416
u277375424
1551578815
Python
Python3
py
Runtime Error
0
0
107
while True: x = int(input()) if x == 0: break table = x.split() print(sum(table))
s110815920
p02416
u277375424
1551578837
Python
Python3
py
Runtime Error
0
0
102
while True: x = input() if x == 0: break table = x.split() print(sum(table))
s572660768
p02416
u277375424
1551578848
Python
Python3
py
Runtime Error
0
0
107
while True: x = int(input()) if x == 0: break table = x.split() print(sum(table))
s031438121
p02416
u277375424
1551580537
Python
Python3
py
Runtime Error
0
0
96
while True: table = int(input()) if table[0] == 0: break print(sum(table))
s320069535
p02416
u277375424
1551580552
Python
Python3
py
Runtime Error
0
0
91
while True: table = input() if table[0] == 0: break print(sum(table))
s582664641
p02416
u277375424
1551580566
Python
Python3
py
Runtime Error
0
0
96
while True: table = str(input()) if table[0] == 0: break print(sum(table))
s061768049
p02416
u277375424
1551580634
Python
Python3
py
Runtime Error
0
0
97
while True: x = int(input()) if x == 0: break print(sum(int(i) for i in x))
s412556906
p02416
u277375424
1551580728
Python
Python3
py
Runtime Error
0
0
92
while True: x = input() if x == 0: break print(sum(int(i) for i in x))
s974245064
p02416
u277375424
1551580737
Python
Python3
py
Runtime Error
0
0
92
while True: x = input() if x == 0: break print(sum(int(i) for i in x))
s447843991
p02416
u654661069
1555979619
Python
Python3
py
Runtime Error
0
0
514
#define MAXSIZE 1000 #include <iostream> #include <stdio.h> #include <string.h> using namespace std; char init_str[MAXSIZE]={}; int main() { char str[MAXSIZE]; int sum; while(1){ strcpy(str,init_str); scanf("%s",&str); if((int)(str[0]-'0')!=0){ sum=0; ...
s978632095
p02416
u654661069
1555979661
Python
Python3
py
Runtime Error
0
0
514
#define MAXSIZE 1000 #include <iostream> #include <stdio.h> #include <string.h> using namespace std; char init_str[MAXSIZE]={}; int main() { char str[MAXSIZE]; int sum; while(1){ strcpy(str,init_str); scanf("%s",&str); if((int)(str[0]-'0')!=0){ sum=0; ...
s292553052
p02416
u662822413
1556548149
Python
Python3
py
Runtime Error
0
0
121
while True: table=str(input()) if table[0] == '0': break print(sum(int(num) for num in table(num)))
s708772906
p02416
u966110132
1559119979
Python
Python3
py
Runtime Error
0
0
366
a = int(input()) alist = [] if a/1000 >=1: alist.append(int(a/1000)) if (a-int(a/1000)*1000) / 100 >= 1: alist.append(int((a-int(a/1000)*1000) / 100)) if (a-int(a/100)) / 10 >= 1: alist.append(int((a-(int(a/100)*100)) / 10)) alist.append(a-(int(a/10)*10)) a2 = 0 ...
s259127852
p02416
u966110132
1559119991
Python
Python3
py
Runtime Error
0
0
380
while 1 == 1: a = int(input()) alist = [] if a/1000 >=1: alist.append(int(a/1000)) if (a-int(a/1000)*1000) / 100 >= 1: alist.append(int((a-int(a/1000)*1000) / 100)) if (a-int(a/100)) / 10 >= 1: alist.append(int((a-(int(a/100)*100)) / 10)) alist.append(a-(int(a/10)*10)) ...
s619647941
p02416
u966110132
1559120059
Python
Python3
py
Runtime Error
0
0
380
while 1 == 1: a = int(input()) alist = [] if a/1000 >=1: alist.append(int(a/1000)) if (a-int(a/1000)*1000) / 100 >= 1: alist.append(int((a-int(a/1000)*1000) / 100)) if (a-int(a/100)) / 10 >= 1: alist.append(int((a-(int(a/100)*100)) / 10)) alist.append(a-(int(a/10)*10)) ...