Submission #72366730


Source Code Expand

N = int(input())
T =list(map(int, input().split()))

C = tuple(T)
A = [None]*3


for j in range(3):
  B = T[0]
  for i in range(N-j):
    if B > T[i]:
      B = T[i]
  #print(B)
  A[j] = C.index(B)+1
  T.remove(B)
  #print(C)
A_str = [str(a) for a in A]
A_str = ' '.join(A_str)
print(A_str)

Submission Info

Submission Time
Task B - Trifecta
User huwaso
Language Python (CPython 3.13.7)
Score 200
Code Size 308 Byte
Status AC
Exec Time 12 ms
Memory 9156 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 11 ms 9120 KiB
random_02.txt AC 11 ms 9156 KiB
random_03.txt AC 12 ms 9120 KiB
random_04.txt AC 12 ms 9100 KiB
random_05.txt AC 12 ms 8988 KiB
random_06.txt AC 11 ms 9084 KiB
random_07.txt AC 11 ms 9048 KiB
random_08.txt AC 11 ms 9140 KiB
sample_01.txt AC 12 ms 9032 KiB
sample_02.txt AC 11 ms 9092 KiB