Submission #2916370


Source Code Expand

for _ in[0]*int(input()):
  s=input().split()
  i=0
  if s[0][0]=='M':i=len(s[2])//2
  if s[0][0]=='E':i=len(s[2])-1
  print(s[2][i],end='')
print()

Submission Info

Submission Time
Task A - エンド・オブ・ビギニング
User c_r_5
Language PyPy3 (2.4.0)
Score 100
Code Size 154 Byte
Status AC
Exec Time 179 ms
Memory 38384 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 19
Set Name Test Cases
All 00_sample_00.txt, 00_sample_01.txt, 10_min_00.txt, 10_min_01.txt, 10_min_02.txt, 20_max_00.txt, 20_max_01.txt, 20_max_02.txt, 90_random_00.txt, 90_random_01.txt, 90_random_02.txt, 90_random_03.txt, 90_random_04.txt, 90_random_05.txt, 90_random_06.txt, 90_random_07.txt, 90_random_08.txt, 90_random_09.txt, 99_medium_00.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 168 ms 38256 KB
00_sample_01.txt AC 166 ms 38256 KB
10_min_00.txt AC 163 ms 38256 KB
10_min_01.txt AC 168 ms 38256 KB
10_min_02.txt AC 165 ms 38256 KB
20_max_00.txt AC 168 ms 38256 KB
20_max_01.txt AC 171 ms 38256 KB
20_max_02.txt AC 175 ms 38256 KB
90_random_00.txt AC 170 ms 38256 KB
90_random_01.txt AC 179 ms 38256 KB
90_random_02.txt AC 166 ms 38256 KB
90_random_03.txt AC 162 ms 38256 KB
90_random_04.txt AC 179 ms 38256 KB
90_random_05.txt AC 165 ms 38256 KB
90_random_06.txt AC 172 ms 38256 KB
90_random_07.txt AC 167 ms 38384 KB
90_random_08.txt AC 168 ms 38256 KB
90_random_09.txt AC 168 ms 38256 KB
99_medium_00.txt AC 167 ms 38256 KB