/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 16ms 3.105 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 16ms 3.148 MiB

Code

n = int(input())
arr = list(map(int, input().split()))
q = int(input())

for i in range(q):
    x = int(input())
    minimum_idx = arr.index(min(arr)) + 1
    print(minimum_idx_idx)
    arr[minimum_idx_idx - 1] = x

Information

Submit By
Type
Submission
Problem
P1086 KuZ the Position
Contest
Bangladesh 2.0
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-16 17:22:30
Judged At
2024-11-11 03:11:50
Judged By
Score
0
Total Time
16ms
Peak Memory
3.148 MiB