message
stringlengths
2
11.9k
message_type
stringclasses
2 values
message_id
int64
0
1
conversation_id
int64
137
108k
cluster
float64
18
18
__index_level_0__
int64
274
217k
Provide tags and a correct Python 3 solution for this coding contest problem. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GENIUS Output YES Input DOCTOR Output ...
instruction
0
76,012
18
152,024
Tags: *special, brute force, dp, strings Correct Solution: ``` i=input() a=[] m=0 for j in i: a.append(ord(j)-ord('A')) map(int,a) for b in range(len(a)-2): c=b+2 if a[c]!=a[c-1]+a[c-2] and a[c-1]+a[c-2]<26: print('NO') m=1 break elif a[c-1]+a[c-2]>=26: if a[c]!=a[c-1...
output
1
76,012
18
152,025
Provide tags and a correct Python 3 solution for this coding contest problem. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GENIUS Output YES Input DOCTOR Output ...
instruction
0
76,013
18
152,026
Tags: *special, brute force, dp, strings Correct Solution: ``` zw=[True,False,False,False,True,True,False,True,True,False,True,True,True,True,False,False,False,False,False,True,False,True,True,True,True,True] h=True s=input() b=zw[ord(s[0])-65] for i in s: if b!=zw[ord(i)-65]: h=False break if h: print("YES...
output
1
76,013
18
152,027
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,014
18
152,028
Yes
output
1
76,014
18
152,029
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,015
18
152,030
Yes
output
1
76,015
18
152,031
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,016
18
152,032
Yes
output
1
76,016
18
152,033
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,017
18
152,034
Yes
output
1
76,017
18
152,035
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,018
18
152,036
No
output
1
76,018
18
152,037
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,019
18
152,038
No
output
1
76,019
18
152,039
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,020
18
152,040
No
output
1
76,020
18
152,041
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Input The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive. Output Output "YES" or "NO". Examples Input GEN...
instruction
0
76,021
18
152,042
No
output
1
76,021
18
152,043
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. At many competitions that have a word «cup» in its official name the winner is presented with an actual cup. This time the organizers of one unusual programming competition have decided to pleas...
instruction
0
76,713
18
153,426
No
output
1
76,713
18
153,427
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. At many competitions that have a word «cup» in its official name the winner is presented with an actual cup. This time the organizers of one unusual programming competition have decided to pleas...
instruction
0
76,714
18
153,428
No
output
1
76,714
18
153,429
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Mahmoud and Ehab are in the fourth stage now. Dr. Evil has a hidden binary string of length n. He guarantees that there is at least one '0' symbol and at least one '1' symbol in it. Now he want...
instruction
0
77,285
18
154,570
No
output
1
77,285
18
154,571
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Mahmoud and Ehab are in the fourth stage now. Dr. Evil has a hidden binary string of length n. He guarantees that there is at least one '0' symbol and at least one '1' symbol in it. Now he want...
instruction
0
77,286
18
154,572
No
output
1
77,286
18
154,573
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Mahmoud and Ehab are in the fourth stage now. Dr. Evil has a hidden binary string of length n. He guarantees that there is at least one '0' symbol and at least one '1' symbol in it. Now he want...
instruction
0
77,287
18
154,574
No
output
1
77,287
18
154,575
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Mahmoud and Ehab are in the fourth stage now. Dr. Evil has a hidden binary string of length n. He guarantees that there is at least one '0' symbol and at least one '1' symbol in it. Now he want...
instruction
0
77,288
18
154,576
No
output
1
77,288
18
154,577
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,453
18
154,906
"Correct Solution: ``` S,T,U=input().split();print(S[0].upper()+T[0].upper()+U[0].upper()) ```
output
1
77,453
18
154,907
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,454
18
154,908
"Correct Solution: ``` s="" for x in input().split():s+=x[0] print(s.upper()) ```
output
1
77,454
18
154,909
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,455
18
154,910
"Correct Solution: ``` print(''.join([_[0].upper() for _ in input().split()])) ```
output
1
77,455
18
154,911
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,456
18
154,912
"Correct Solution: ``` a, b, c = input().split(" ") s = a[0]+b[0]+c[0] print(s.upper()) ```
output
1
77,456
18
154,913
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,457
18
154,914
"Correct Solution: ``` print(''.join([a[0] for a in input().upper().split()])) ```
output
1
77,457
18
154,915
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,458
18
154,916
"Correct Solution: ``` a,b,c=map(str,input().split());print((a[0]+b[0]+c[0]).upper()) ```
output
1
77,458
18
154,917
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,459
18
154,918
"Correct Solution: ``` a,b,c=input().split() x=(a[0]+b[0]+c[0]).upper() print(x) ```
output
1
77,459
18
154,919
Provide a correct Python 3 solution for this coding contest problem. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constraints * s_1, s_2 and s_3 are composed of lowercase Engl...
instruction
0
77,460
18
154,920
"Correct Solution: ``` x,y,z = (input().split()) print((x[:1]+y[:1]+z[:1]).upper()) ```
output
1
77,460
18
154,921
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,461
18
154,922
Yes
output
1
77,461
18
154,923
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,462
18
154,924
Yes
output
1
77,462
18
154,925
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,463
18
154,926
Yes
output
1
77,463
18
154,927
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,464
18
154,928
Yes
output
1
77,464
18
154,929
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,465
18
154,930
No
output
1
77,465
18
154,931
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,466
18
154,932
No
output
1
77,466
18
154,933
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,467
18
154,934
No
output
1
77,467
18
154,935
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given three words s_1, s_2 and s_3, each composed of lowercase English letters, with spaces in between. Print the acronym formed from the uppercased initial letters of the words. Constr...
instruction
0
77,468
18
154,936
No
output
1
77,468
18
154,937
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,864
18
155,728
Yes
output
1
77,864
18
155,729
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,865
18
155,730
Yes
output
1
77,865
18
155,731
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,866
18
155,732
Yes
output
1
77,866
18
155,733
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,867
18
155,734
Yes
output
1
77,867
18
155,735
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,868
18
155,736
No
output
1
77,868
18
155,737
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,869
18
155,738
No
output
1
77,869
18
155,739
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,870
18
155,740
No
output
1
77,870
18
155,741
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: 1. They are equal. ...
instruction
0
77,871
18
155,742
No
output
1
77,871
18
155,743
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,151
18
156,302
Yes
output
1
78,151
18
156,303
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,152
18
156,304
Yes
output
1
78,152
18
156,305
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,153
18
156,306
Yes
output
1
78,153
18
156,307
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,154
18
156,308
Yes
output
1
78,154
18
156,309
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,155
18
156,310
No
output
1
78,155
18
156,311
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,156
18
156,312
No
output
1
78,156
18
156,313
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,157
18
156,314
No
output
1
78,157
18
156,315
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given a string S consisting of letters `b`, `d`, `p` and `q`. Determine whether S is a mirror string. Here, a mirror string is a string S such that the following sequence of operations ...
instruction
0
78,158
18
156,316
No
output
1
78,158
18
156,317
Provide a correct Python 3 solution for this coding contest problem. One day, Taro received a strange email with only the number "519345213244" in the text. The email was from my cousin, who was 10 years older than me, so when I called and asked, "Oh, I sent it with a pocket bell because I was in a hurry. It's conveni...
instruction
0
78,175
18
156,350
"Correct Solution: ``` def message(numbers): numbers=str(numbers) message="" while(len(numbers)>0): num=numbers[:2] if len(num)==1: return "NA" if int(num[0])>6 or int(num[0])<=0: return "NA" if int(num[1])>5 or int(num[1])<=0: return "N...
output
1
78,175
18
156,351
Provide a correct Python 3 solution for this coding contest problem. One day, Taro received a strange email with only the number "519345213244" in the text. The email was from my cousin, who was 10 years older than me, so when I called and asked, "Oh, I sent it with a pocket bell because I was in a hurry. It's conveni...
instruction
0
78,176
18
156,352
"Correct Solution: ``` # AOJ 0127 Pocket Pager Input # Python3 2018.6.18 bal4u a = ['']*100 a[11], a[12], a[13], a[14], a[15] = 'a', 'b', 'c', 'd', 'e' a[21], a[22], a[23], a[24], a[25] = 'f', 'g', 'h', 'i', 'j' a[31], a[32], a[33], a[34], a[35] = 'k', 'l', 'm', 'n', 'o' a[41], a[42], a[43], a[44], a[45] = 'p', 'q', ...
output
1
78,176
18
156,353