Submission #72574811


Source Code Expand

import sys,bisect
from heapq import heappop, heappush
from collections import deque, Counter, defaultdict
sys.setrecursionlimit(10**7)
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

N = ii()
S = [input() for _ in range(N)]
S = [(len(S[i]), S[i]) for i in range(N)]
S.sort()
ans = []
for i in reversed(range(N)):
    ans.append(S[i][1][0].upper())
print("".join(ans))

Submission Info

Submission Time
Task D - EGFイニシャル
User guild2026_288
Language Python (PyPy 3.11-v7.3.20)
Score 100
Code Size 507 Byte
Status AC
Exec Time 68 ms
Memory 96540 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 68 ms 96512 KiB
00_sample_01.txt AC 67 ms 96540 KiB
00_sample_02.txt AC 68 ms 96136 KiB
01_random_00.txt AC 67 ms 96144 KiB
01_random_01.txt AC 68 ms 96136 KiB
01_random_02.txt AC 68 ms 96532 KiB
01_random_03.txt AC 67 ms 96440 KiB
01_random_04.txt AC 67 ms 96236 KiB
01_random_05.txt AC 67 ms 96268 KiB
01_random_06.txt AC 67 ms 96248 KiB
01_random_07.txt AC 67 ms 96416 KiB
01_random_08.txt AC 68 ms 96236 KiB
01_random_09.txt AC 67 ms 96448 KiB
01_random_10.txt AC 67 ms 96428 KiB